aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-04-03 23:09:11 +0100
committerMatthew Wild <mwild1@gmail.com>2010-04-03 23:09:11 +0100
commit89e9f18d2ac62feb42a56a87ef0836a886da5d76 (patch)
treeace0eeab3ed6610204951f2ef1c60b23caeb36d8 /plugins/mod_bosh.lua
parent3dbf4c9e57cec2baa98f8864263a3cd11d608707 (diff)
parent1b43f0146e5de1245f6bcbd4b4e0fbd2f513b863 (diff)
downloadprosody-89e9f18d2ac62feb42a56a87ef0836a886da5d76.tar.gz
prosody-89e9f18d2ac62feb42a56a87ef0836a886da5d76.zip
Merge 0.6->0.7
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 14cb1b91..02f3ce38 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -23,7 +23,7 @@ local logger = require "util.logger";
local log = logger.init("mod_bosh");
local xmlns_bosh = "http://jabber.org/protocol/httpbind"; -- (hard-coded into a literal in session.send)
-local stream_callbacks = { stream_ns = "http://jabber.org/protocol/httpbind", stream_tag = "body", default_ns = xmlns_bosh };
+local stream_callbacks = { stream_ns = "http://jabber.org/protocol/httpbind", stream_tag = "body", default_ns = "jabber:client" };
local BOSH_DEFAULT_HOLD = tonumber(module:get_option("bosh_default_hold")) or 1;
local BOSH_DEFAULT_INACTIVITY = tonumber(module:get_option("bosh_max_inactivity")) or 60;
@@ -274,7 +274,7 @@ function stream_callbacks.handlestanza(request, stanza)
local session = sessions[request.sid];
if session then
if stanza.attr.xmlns == xmlns_bosh then
- stanza.attr.xmlns = "jabber:client";
+ stanza.attr.xmlns = nil;
end
session.ip = request.handler:ip();
core_process_stanza(session, stanza);