plugins/mod_bosh.lua
changeset 4379 e4d88f4a780c
parent 4332 8154bc28e520
child 4436 aa79b3767f98
child 4526 cdab466551bd
--- 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