Software /
code /
prosody
Changeset
3449:0a74ce129a06
mod_bosh: Small change to use variable instead of hard-coded xmlns
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 06 Aug 2010 02:00:12 +0100 |
parents | 3448:0ca7c3864431 |
children | 3450:4bd78a5fee75 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Fri Aug 06 01:59:43 2010 +0100 +++ b/plugins/mod_bosh.lua Fri Aug 06 02:00:12 2010 +0100 @@ -25,7 +25,9 @@ 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;