diff options
author | Waqas Hussain <waqas20@gmail.com> | 2013-06-07 16:26:08 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2013-06-07 16:26:08 -0400 |
commit | 67161986600abebddbb9654ed2a4e8756172da8f (patch) | |
tree | a555a8c92caef253bc38b920c01ab1ae88e8e0d9 /plugins/mod_bosh.lua | |
parent | 192d4df580039eedb58e804604874c596b2eca77 (diff) | |
download | prosody-67161986600abebddbb9654ed2a4e8756172da8f.tar.gz prosody-67161986600abebddbb9654ed2a4e8756172da8f.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.lua | 2 |
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 |