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 11:00:04 +0000 (13:00 +0200)
committerKim Alvefur <zash@zash.se>
Wed, 27 Aug 2014 11:00:04 +0000 (13:00 +0200)
util/xmppstream.lua

index 6982aae30732abac9a8b17afcb5d56892700e7e4..5848e20070e64c48082f56a4441bc37a46769071 100644 (file)
@@ -249,7 +249,7 @@ function new(session, stream_callbacks, stanza_size_limit)
                        ["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