Software /
code /
prosody
Changeset
4803:39ba097ec641
mod_component: Send <?xml on initial stream (thanks xnyhps)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 30 Apr 2012 00:42:02 +0100 |
parents | 4802:916c35d6105f |
children | 4804:607414b26c8c |
files | plugins/mod_component.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_component.lua Sun Apr 29 21:20:35 2012 +0100 +++ b/plugins/mod_component.lua Mon Apr 30 00:42:02 2012 +0100 @@ -158,6 +158,7 @@ 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