Software /
code /
verse
Comparison
client.lua @ 460:a523535d8937
client: Include xml:lang in stream header, if known
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Mar 2023 11:43:16 +0000 |
parent | 459:6be4182cfb31 |
child | 490:6b2f31da9610 |
comparison
equal
deleted
inserted
replaced
459:6be4182cfb31 | 460:a523535d8937 |
---|---|
220 end | 220 end |
221 | 221 |
222 function stream:reopen() | 222 function stream:reopen() |
223 self:reset(); | 223 self:reset(); |
224 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', | 224 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
225 xmlns = "jabber:client", version = "1.0" }):top_tag()); | 225 xmlns = "jabber:client", version = "1.0", ["xml:lang"] = self.lang }):top_tag()); |
226 end | 226 end |
227 | 227 |
228 function stream:send_iq(iq, callback) | 228 function stream:send_iq(iq, callback) |
229 local id = iq.attr.id or uuid.generate(); | 229 local id = iq.attr.id or uuid.generate(); |
230 self.tracked_iqs[id] = callback; | 230 self.tracked_iqs[id] = callback; |