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 | 45a88409431a09690cdf46f0c33219bcc7124197 (patch) | |
tree | a555a8c92caef253bc38b920c01ab1ae88e8e0d9 /plugins/mod_bosh.lua | |
parent | ceac13c856552fea29210869aedfbb0691f65d80 (diff) | |
download | prosody-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.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 |