aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-04-03 22:24:39 +0100
committerMatthew Wild <mwild1@gmail.com>2010-04-03 22:24:39 +0100
commit64991c424da09a66155e95d571318bc8f057a35e (patch)
treecdc6e3d7f48a9e02db659f6fdbd54b90dc202fc3
parent64a003d115e699b5076af196e2f7cbf3e345a618 (diff)
downloadprosody-64991c424da09a66155e95d571318bc8f057a35e.tar.gz
prosody-64991c424da09a66155e95d571318bc8f057a35e.zip
mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to work with recent namespace fix)
-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 a55b1a3e..5c77ad46 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_tag = "http://jabber.org/protocol/httpbind\1body", default_ns = xmlns_bosh };
+local stream_callbacks = { stream_tag = "http://jabber.org/protocol/httpbind\1body", 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;
@@ -252,7 +252,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);