Commit 8e55c409 authored by csh's avatar csh

OF-717 The BOSH implementation should include a 'from' attribute in its session creation response.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13962 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2b7ae309
......@@ -37,6 +37,7 @@ import org.dom4j.QName;
import org.eclipse.jetty.util.log.Log;
import org.jivesoftware.openfire.SessionManager;
import org.jivesoftware.openfire.StreamID;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.openfire.auth.UnauthorizedException;
import org.jivesoftware.util.JiveConstants;
import org.jivesoftware.util.JiveGlobals;
......@@ -366,6 +367,7 @@ public class HttpSessionManager {
Element response = DocumentHelper.createElement("body");
response.addNamespace("", "http://jabber.org/protocol/httpbind");
response.addNamespace("stream", "http://etherx.jabber.org/streams");
response.addAttribute("from", XMPPServer.getInstance().getServerInfo().getXMPPDomain());
response.addAttribute("authid", session.getStreamID().getID());
response.addAttribute("sid", session.getStreamID().getID());
response.addAttribute("secure", Boolean.TRUE.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