# HG changeset patch # User Matthew Wild # Date 1270329879 -3600 # Node ID 62a3f824292a2fe80234868e51fa66e736ca67a9 # Parent 0250fba6be72550e3484fbac151e40f84d298a76 mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to work with recent namespace fix) diff -r 0250fba6be72 -r 62a3f824292a plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Tue Mar 30 19:44:50 2010 +0100 +++ b/plugins/mod_bosh.lua Sat Apr 03 22:24:39 2010 +0100 @@ -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_tag = "http://jabber.org/protocol/httpbind\1body", 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; @@ -252,7 +252,7 @@ local session = sessions[request.sid]; if session then if stanza.attr.xmlns == xmlns_bosh then - stanza.attr.xmlns = "jabber:client"; + stanza.attr.xmlns = nil; end session.ip = request.handler.ip(); core_process_stanza(session, stanza);