Commit 3ba467df authored by Dave Cridland's avatar Dave Cridland

Merge pull request #146 from tevans/OF-629

OF-629: Here Lies XMPP Session
parents 90b70fca da82ca9b
......@@ -178,6 +178,7 @@ public class HttpSession extends LocalClientSession {
Element session = DocumentHelper.createElement(new QName("session",
new Namespace("", "urn:ietf:params:xml:ns:xmpp-session")));
session.addElement("optional");
elements.add(session);
return elements;
}
......
......@@ -804,7 +804,7 @@ public class LocalClientSession extends LocalSession implements ClientSession {
// If the session has been authenticated then offer resource binding
// and session establishment
sb.append("<bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"/>");
sb.append("<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/>");
sb.append("<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"><optional/></session>");
}
return sb.toString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment