Software /
code /
prosody
Diff
plugins/mod_component.lua @ 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 |
parent | 4757:5fb68e68ba0b |
child | 4805:1aeece2cc814 |
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