mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
authorMatthew Wild <mwild1@gmail.com>
Thu, 15 Sep 2011 17:38:24 +0100
changeset 4379 e4d88f4a780c
parent 4378 5e1f4af11626
child 4380 9f1c61805817
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
plugins/mod_bosh.lua
--- 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