aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-06-07 16:26:08 -0400
committerWaqas Hussain <waqas20@gmail.com>2013-06-07 16:26:08 -0400
commit67161986600abebddbb9654ed2a4e8756172da8f (patch)
treea555a8c92caef253bc38b920c01ab1ae88e8e0d9 /plugins
parent192d4df580039eedb58e804604874c596b2eca77 (diff)
downloadprosody-67161986600abebddbb9654ed2a4e8756172da8f.tar.gz
prosody-67161986600abebddbb9654ed2a4e8756172da8f.zip
mod_bosh: Don't tostring() stream:features when passing to session.send().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 04d85e60..d8109602 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -352,7 +352,7 @@ function stream_callbacks.streamopened(context, attr)
local features = st.stanza("stream:features");
hosts[session.host].events.fire_event("stream-features", { origin = session, features = features });
fire_event("stream-features", session, features);
- session.send(tostring(features));
+ session.send(features);
session.notopen = nil;
end
end