Comparison

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
comparison
equal deleted inserted replaced
6353:a868d5d6a83f 6355:c2d144d3f8dd
247 local attr = { 247 local attr = {
248 ["xmlns:stream"] = "http://etherx.jabber.org/streams", 248 ["xmlns:stream"] = "http://etherx.jabber.org/streams",
249 ["xml:lang"] = "en", 249 ["xml:lang"] = "en",
250 xmlns = stream_callbacks.default_ns, 250 xmlns = stream_callbacks.default_ns,
251 version = session.version and (session.version > 0 and "1.0" or nil), 251 version = session.version and (session.version > 0 and "1.0" or nil),
252 id = session.streamid or "", 252 id = session.streamid,
253 from = from or session.host, to = to, 253 from = from or session.host, to = to,
254 }; 254 };
255 if session.stream_attrs then 255 if session.stream_attrs then
256 session:stream_attrs(from, to, attr) 256 session:stream_attrs(from, to, attr)
257 end 257 end