aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
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
commit45a88409431a09690cdf46f0c33219bcc7124197 (patch)
treea555a8c92caef253bc38b920c01ab1ae88e8e0d9 /plugins/mod_bosh.lua
parentceac13c856552fea29210869aedfbb0691f65d80 (diff)
downloadprosody-45a88409431a09690cdf46f0c33219bcc7124197.tar.gz
prosody-45a88409431a09690cdf46f0c33219bcc7124197.zip
mod_bosh: Don't tostring() stream:features when passing to session.send().
Diffstat (limited to 'plugins/mod_bosh.lua')
-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