Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 1665:2c72b725384e
mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send them without the correct xmlns
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 Aug 2009 20:38:48 +0100 |
parent | 1664:6587b6c2678e |
child | 1865:388b125b784a |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Aug 11 20:15:54 2009 +0100 +++ b/plugins/mod_bosh.lua Tue Aug 11 20:38:48 2009 +0100 @@ -21,8 +21,9 @@ 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;