# HG changeset patch # User Matthew Wild # Date 1264034107 0 # Node ID 3f4cfa375bd69ec9d6dee9b0527d9298f7c7d18b # Parent cde876604bb735e1613c418259202d15a3aa7454 mod_bosh: Trailing whitespace diff -r cde876604bb7 -r 3f4cfa375bd6 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Tue Jan 19 19:58:02 2010 +0000 +++ b/plugins/mod_bosh.lua Thu Jan 21 00:35:07 2010 +0000 @@ -63,7 +63,7 @@ if (not body) or request.method ~= "POST" then return "You really don't look like a BOSH client to me... what do you want?"; end - if not method then + if not method then log("debug", "Request %s suffered error %s", tostring(request.id), body); return; end @@ -188,12 +188,12 @@ local features = st.stanza("stream:features"); fire_event("stream-features", session, features); --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, authid = sid, ver = '1.6', from = session.host, secure = 'true', ["xmpp:version"] = "1.0", + 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, 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) }; - + request.sid = sid; return; end