Software /
code /
prosody
Diff
util/xmppstream.lua @ 6355:c2d144d3f8dd
util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 27 Aug 2014 13:00:04 +0200 |
parent | 6084:3c02a9ed399e |
child | 6367:769a3577dd85 |
line wrap: on
line diff
--- a/util/xmppstream.lua Wed Aug 13 19:19:34 2014 +0200 +++ b/util/xmppstream.lua Wed Aug 27 13:00:04 2014 +0200 @@ -249,7 +249,7 @@ ["xml:lang"] = "en", xmlns = stream_callbacks.default_ns, version = session.version and (session.version > 0 and "1.0" or nil), - id = session.streamid or "", + id = session.streamid, from = from or session.host, to = to, }; if session.stream_attrs then