aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-06-07 17:47:27 +0100
committerMatthew Wild <mwild1@gmail.com>2013-06-07 17:47:27 +0100
commit6155cd122ae4cec521ad3a6081778b53176e907c (patch)
tree305f3876bdbbb86e1b9f59ccfb7f2c7e51fd78a3 /plugins/mod_bosh.lua
parent36910d3b8861030001ddc2c7fdd8fbe0f34887f9 (diff)
downloadprosody-6155cd122ae4cec521ad3a6081778b53176e907c.tar.gz
prosody-6155cd122ae4cec521ad3a6081778b53176e907c.zip
mod_bosh: Fix global write
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 936cb7b5..f2b7f458 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -292,7 +292,8 @@ function stream_callbacks.streamopened(context, attr)
body_attr.hold = tostring(session.bosh_hold);
body_attr.authid = sid;
body_attr.secure = "true";
- body_attr.ver = '1.6'; from = session.host;
+ body_attr.ver = '1.6';
+ body_attr.from = session.host;
body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh";
body_attr["xmpp:version"] = "1.0";
end