aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-30 00:42:02 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-30 00:42:02 +0100
commit3b53149f03f87b853ad5d92c3f4baf20f167a623 (patch)
tree66c702a6952f3343826d036dd1a2ec7a0b87a404 /plugins
parent8da7bdb6fdd920f65ecb9d1c0130e283d0d27e0c (diff)
downloadprosody-3b53149f03f87b853ad5d92c3f4baf20f167a623.tar.gz
prosody-3b53149f03f87b853ad5d92c3f4baf20f167a623.zip
mod_component: Send <?xml on initial stream (thanks xnyhps)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 6be68e39..c4237b45 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -158,6 +158,7 @@ function stream_callbacks.streamopened(session, attr)
session.streamid = uuid_gen();
session.notopen = nil;
-- Return stream header
+ session.send("<?xml version='1.0'?>");
session.send(st.stanza("stream:stream", { xmlns=xmlns_component,
["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.host }):top_tag());
end