# HG changeset patch # User Matthew Wild # Date 1240453642 -3600 # Node ID c476bceaf2db4e55fd57dbe3724e9f4b9ef35d51 # Parent 45fc590539cd856eb741b0500ac2a471d0a08401 mod_bosh: Put dummy authid in session creation response to keep JSJaC happy diff -r 45fc590539cd -r c476bceaf2db plugins/mod_bosh.lua --- 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) };