mod_bosh: Update for new xmlhandlers syntax
authorMatthew Wild <mwild1@gmail.com>
Tue, 19 Jan 2010 03:57:19 +0000 (03:57 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 19 Jan 2010 03:57:19 +0000 (03:57 +0000)
plugins/mod_bosh.lua

index bc31b3a13c8140de5424763277d4bfbd20b57628..60e2db348f29f267095220f02779b5db70ea54cf 100644 (file)
@@ -23,7 +23,7 @@ local logger = require "util.logger";
 local log = logger.init("mod_bosh");
 
 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\1body", default_ns = xmlns_bosh };
+local stream_callbacks = { stream_ns = "http://jabber.org/protocol/httpbind", stream_tag = "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;