aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
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
commitba8ef0d839760083859eec18d6772edfc9cac77e (patch)
tree66c702a6952f3343826d036dd1a2ec7a0b87a404 /plugins/mod_component.lua
parentc131f204d9db3ad9288d039cfd1330eebd1aac71 (diff)
downloadprosody-ba8ef0d839760083859eec18d6772edfc9cac77e.tar.gz
prosody-ba8ef0d839760083859eec18d6772edfc9cac77e.zip
mod_component: Send <?xml on initial stream (thanks xnyhps)
Diffstat (limited to 'plugins/mod_component.lua')
-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