mod_bosh: Don't tostring() stream:features when passing to session.send().
authorWaqas Hussain <waqas20@gmail.com>
Fri, 07 Jun 2013 16:26:08 -0400
changeset 5658 97c1c1bdd7bc
parent 5657 7957f14038e8
child 5659 9f9de8078164
mod_bosh: Don't tostring() stream:features when passing to session.send().
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