Changeset

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
parents 459:6be4182cfb31
children 461:fa5c40e5e079
files client.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)