diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-08-06 02:00:12 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-08-06 02:00:12 +0100 |
commit | 1a9f9282fc152100cb48ae810997cfb3ca0be2f0 (patch) | |
tree | 26f1f25199407e777cfd63588b790b3a90d5eb55 /plugins/mod_bosh.lua | |
parent | 44014508ea186f8f052575ba9aeadc538943478e (diff) | |
download | prosody-1a9f9282fc152100cb48ae810997cfb3ca0be2f0.tar.gz prosody-1a9f9282fc152100cb48ae810997cfb3ca0be2f0.zip |
mod_bosh: Small change to use variable instead of hard-coded xmlns
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index b59dfd78..1d4d8096 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -25,7 +25,9 @@ local log = logger.init("mod_bosh"); local xmlns_streams = "http://etherx.jabber.org/streams"; local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; 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 = "jabber:client" }; + +local stream_callbacks = { + stream_ns = xmlns_bosh, 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; |