aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-11 20:38:48 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-11 20:38:48 +0100
commit928fb0e2e23412b39363f87a8d5030d5be17a55a (patch)
treeb5b0401533ec4a0789054bc56af1af2264cce0ea /plugins/mod_bosh.lua
parent041a1ee3969b85b122238b994b9ef6da1e449646 (diff)
downloadprosody-928fb0e2e23412b39363f87a8d5030d5be17a55a.tar.gz
prosody-928fb0e2e23412b39363f87a8d5030d5be17a55a.zip
mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send them without the correct xmlns
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index fae7dc93..e310be28 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -21,8 +21,9 @@ local core_process_stanza = core_process_stanza;
local st = require "util.stanza";
local logger = require "util.logger";
local log = logger.init("mod_bosh");
-local stream_callbacks = { stream_tag = "http://jabber.org/protocol/httpbind|body" };
+
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|body", default_ns = xmlns_bosh };
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;