Diff

plugins/mod_bosh.lua @ 4379:e4d88f4a780c

mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
author Matthew Wild <mwild1@gmail.com>
date Thu, 15 Sep 2011 17:38:24 +0100
parent 4332:8154bc28e520
child 4436:aa79b3767f98
child 4526:cdab466551bd
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Sat Sep 03 15:44:05 2011 -0400
+++ b/plugins/mod_bosh.lua	Thu Sep 15 17:38:24 2011 +0100
@@ -181,7 +181,7 @@
 	(session.log or log)("info", "BOSH client disconnected");
 	
 	local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
-		["xmlns:streams"] = xmlns_streams });
+		["xmlns:stream"] = xmlns_streams });
 	
 
 	if reason then
@@ -228,7 +228,7 @@
 			-- Unknown host
 			log("debug", "BOSH client tried to connect to unknown host: %s", tostring(attr.to));
 			local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
-				["xmlns:streams"] = xmlns_streams, condition = "host-unknown" });
+				["xmlns:stream"] = xmlns_streams, condition = "host-unknown" });
 			request:send(tostring(close_reply));
 			return;
 		end