mod_bosh: Small change to use variable instead of hard-coded xmlns
authorMatthew Wild <mwild1@gmail.com>
Fri, 6 Aug 2010 01:00:12 +0000 (02:00 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 6 Aug 2010 01:00:12 +0000 (02:00 +0100)
plugins/mod_bosh.lua

index b59dfd7871fa13eecb364ffddb3f913a8a4d9f62..1d4d8096fdf8476a9202b8cacfa639ea754e2b23 100644 (file)
@@ -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;