diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-23 03:27:22 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-23 03:27:22 +0100 |
commit | 28ae0dd2a96bd440bc3b5d2a1b93cb908d3fea89 (patch) | |
tree | 230970ffbc236e8d49b68af4060cfce4219eb606 | |
parent | 7b9daba98a2dde533c0418c7770e059268244d87 (diff) | |
download | prosody-28ae0dd2a96bd440bc3b5d2a1b93cb908d3fea89.tar.gz prosody-28ae0dd2a96bd440bc3b5d2a1b93cb908d3fea89.zip |
mod_bosh: Put dummy authid in session creation response to keep JSJaC happy
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index b3e953cc..d15f363d 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -180,7 +180,7 @@ function stream_callbacks.streamopened(request, attr) --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) }; |