client: Include xml:lang in stream header, if known

Thu, 16 Mar 2023 11:43:16 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 16 Mar 2023 11:43:16 +0000
changeset 460
a523535d8937
parent 459
6be4182cfb31
child 461
fa5c40e5e079

client: Include xml:lang in stream header, if known

client.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Thu Mar 16 11:42:58 2023 +0000
+++ b/client.lua	Thu Mar 16 11:43:16 2023 +0000
@@ -222,7 +222,7 @@
 function stream:reopen()
 	self:reset();
 	self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams',
-		xmlns = "jabber:client", version = "1.0" }):top_tag());
+		xmlns = "jabber:client", version = "1.0", ["xml:lang"] = self.lang }):top_tag());
 end
 
 function stream:send_iq(iq, callback)

mercurial