mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
mod_component: Send <?xml on initial stream (thanks xnyhps)
This commit is contained in:
parent
c131f204d9
commit
ba8ef0d839
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue