util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)
authorKim Alvefur <zash@zash.se>
Wed, 27 Aug 2014 13:00:04 +0200
changeset 6355 c2d144d3f8dd
parent 6353 a868d5d6a83f
child 6367 769a3577dd85
util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)
util/xmppstream.lua
--- 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