Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 2467:8098310d0dfd
mod_bosh: Update for new xmlhandlers syntax
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Jan 2010 03:57:19 +0000 |
parent | 2373:13090fc6ad90 |
child | 2473:3f4cfa375bd6 |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Jan 19 03:56:44 2010 +0000 +++ b/plugins/mod_bosh.lua Tue Jan 19 03:57:19 2010 +0000 @@ -23,7 +23,7 @@ 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;