diff options
author | Kim Alvefur <zash@zash.se> | 2014-04-10 13:16:54 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-04-10 13:16:54 +0200 |
commit | a415748985aa2ec998caabb5baf1d7f083d6076a (patch) | |
tree | 521b9634144ac84ea608dbe47a15a0bcd1951695 /plugins/mod_component.lua | |
parent | eae27a73d7439930ebe9732d72b14c795b17c528 (diff) | |
parent | b9751f2455a3a7a72c2505d3fc8296ee722726cc (diff) | |
download | prosody-a415748985aa2ec998caabb5baf1d7f083d6076a.tar.gz prosody-a415748985aa2ec998caabb5baf1d7f083d6076a.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r-- | plugins/mod_component.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 1497b12f..297609d8 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -177,9 +177,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()); + session:open_stream(); end function stream_callbacks.streamclosed(session) |