mod_bosh: Don't tostring() stream:features when passing to session.send().
--- 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