# HG changeset patch # User Waqas Hussain # Date 1370636768 14400 # Node ID 97c1c1bdd7bc46b3b424354ca73ad6e17a843ba7 # Parent 7957f14038e85a1ed2c5e272b7151c6ebe164592 mod_bosh: Don't tostring() stream:features when passing to session.send(). diff -r 7957f14038e8 -r 97c1c1bdd7bc plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Fri Jun 07 20:59:43 2013 +0200 +++ b/plugins/mod_bosh.lua Fri Jun 07 16:26:08 2013 -0400 @@ -352,7 +352,7 @@ 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