mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send...
authorMatthew Wild <mwild1@gmail.com>
Tue, 11 Aug 2009 19:38:48 +0000 (20:38 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 11 Aug 2009 19:38:48 +0000 (20:38 +0100)
plugins/mod_bosh.lua

index fae7dc93fd767cd3d83ef0d87743b79cf7382435..e310be28530833b8396dd29f4929c9b4213cc7bf 100644 (file)
@@ -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;