aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-27 13:00:04 +0200
committerKim Alvefur <zash@zash.se>2014-08-27 13:00:04 +0200
commit6007de18c4db1acae2bb17c9d2aaad3b1ef994f5 (patch)
treec3a3e67a6fcf1055c554c6ef1e6e4726812a2b75
parent44a989459cd0943b099df727214fc04a0f87d3b3 (diff)
downloadprosody-6007de18c4db1acae2bb17c9d2aaad3b1ef994f5.tar.gz
prosody-6007de18c4db1acae2bb17c9d2aaad3b1ef994f5.zip
util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)
-rw-r--r--util/xmppstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 6982aae3..5848e200 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -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