Commit 1df1550a authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Features was incorrect

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/branches/httpbind_branch@5863 b35dd754-fafc-0310-a699-88a17e54d16e
parent b46efb9d
...@@ -121,30 +121,13 @@ public class HttpSession extends ClientSession { ...@@ -121,30 +121,13 @@ public class HttpSession extends ClientSession {
elements.add(compression); elements.add(compression);
} }
Element bind = DocumentHelper.createElement(new QName("bind",
new Namespace("", "urn:ietf:params:xml:ns:xmpp-bind")));
elements.add(bind);
if (getAuthToken() == null) { Element session = DocumentHelper.createElement(new QName("session",
// Advertise that the server supports Non-SASL Authentication new Namespace("", "urn:ietf:params:xml:ns:xmpp-session")));
Element auth = DocumentHelper.createElement(new QName("auth", elements.add(session);
new Namespace("", "http://jabber.org/features/iq-auth")));
elements.add(auth);
// Advertise that the server supports In-Band Registration
if (XMPPServer.getInstance().getIQRegisterHandler().isInbandRegEnabled()) {
Element register = DocumentHelper.createElement(new QName("register",
new Namespace("", "http://jabber.org/features/iq-register")));
elements.add(register);
}
}
else {
// If the session has been authenticated then offer resource binding
// and session establishment
Element bind = DocumentHelper.createElement(new QName("bind",
new Namespace("", "urn:ietf:params:xml:ns:xmpp-bind")));
elements.add(bind);
Element session = DocumentHelper.createElement(new QName("session",
new Namespace("", "urn:ietf:params:xml:ns:xmpp-session")));
elements.add(session);
}
return elements; return elements;
} }
......
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