mod_bosh: Put dummy authid in session creation response to keep JSJaC happy

Thu, 23 Apr 2009 03:27:22 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Apr 2009 03:27:22 +0100
changeset 1049
c476bceaf2db
parent 1048
45fc590539cd
child 1050
9552c08241af
child 1051
0327c569eb1a

mod_bosh: Put dummy authid in session creation response to keep JSJaC happy

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_bosh.lua	Thu Apr 23 03:25:48 2009 +0100
+++ b/plugins/mod_bosh.lua	Thu Apr 23 03:27:22 2009 +0100
@@ -180,7 +180,7 @@
 		--xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'
 		local response = st.stanza("body", { xmlns = xmlns_bosh, 
 									inactivity = tostring(BOSH_DEFAULT_INACTIVITY), polling = tostring(BOSH_DEFAULT_POLLING), requests = tostring(BOSH_DEFAULT_REQUESTS), hold = tostring(session.bosh_hold), maxpause = "120", 
-									sid = sid, ver  = '1.6', from = session.host, secure = 'true', ["xmpp:version"] = "1.0", 
+									sid = sid, authid = sid, ver  = '1.6', from = session.host, secure = 'true', ["xmpp:version"] = "1.0", 
 									["xmlns:xmpp"] = "urn:xmpp:xbosh", ["xmlns:stream"] = "http://etherx.jabber.org/streams" }):add_child(features);
 		request:send{ headers = default_headers, body = tostring(response) };
 				

mercurial