From 1a9f9282fc152100cb48ae810997cfb3ca0be2f0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 6 Aug 2010 02:00:12 +0100 Subject: mod_bosh: Small change to use variable instead of hard-coded xmlns --- plugins/mod_bosh.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3