Changeset

1049:c476bceaf2db

mod_bosh: Put dummy authid in session creation response to keep JSJaC happy
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Apr 2009 03:27:22 +0100
parents 1048:45fc590539cd
children 1050:9552c08241af 1051:0327c569eb1a
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) };