aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-09-15 17:38:24 +0100
committerMatthew Wild <mwild1@gmail.com>2011-09-15 17:38:24 +0100
commitac213cfcdd76b639b1dfa3b8bad995830c12378b (patch)
treeb5bf673785dd4f58a798ac5e6fa9209454aa07fe
parent23da873661b1d5c3d0524bbcb01a37d1aad1a5ad (diff)
downloadprosody-ac213cfcdd76b639b1dfa3b8bad995830c12378b.tar.gz
prosody-ac213cfcdd76b639b1dfa3b8bad995830c12378b.zip
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index e6596b41..834b128a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -181,7 +181,7 @@ local function bosh_close_stream(session, reason)
(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 @@ function stream_callbacks.streamopened(request, attr)
-- 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