Diff

plugins/mod_bosh.lua @ 5658:97c1c1bdd7bc

mod_bosh: Don't tostring() stream:features when passing to session.send().
author Waqas Hussain <waqas20@gmail.com>
date Fri, 07 Jun 2013 16:26:08 -0400
parent 5654:020c5cd6eb28
child 5660:df077bc8f019
line wrap: on
line diff
--- 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