Software /
code /
prosody
Changeset
1450:c1c7b27b983b
Send xml:lang in stream headers, fixes #78
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Jul 2009 17:53:18 +0100 |
parents | 1449:6a90316a81c3 |
children | 1452:0ae8787e4e7d |
files | core/s2smanager.lua core/sessionmanager.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Wed Jul 01 15:14:44 2009 +0200 +++ b/core/s2smanager.lua Wed Jul 01 17:53:18 2009 +0100 @@ -253,7 +253,7 @@ local w = conn.write; host_session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end - conn.write(format([[<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' from='%s' to='%s' version='1.0'>]], from_host, to_host)); + conn.write(format([[<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' from='%s' to='%s' version='1.0' xml:lang='en'>]], from_host, to_host)); log("debug", "Connection attempt in progress..."); return true; end
--- a/core/sessionmanager.lua Wed Jul 01 15:14:44 2009 +0200 +++ b/core/sessionmanager.lua Wed Jul 01 17:53:18 2009 +0100 @@ -165,7 +165,7 @@ (session.log or session)("debug", "Client sent opening <stream:stream> to %s", session.host); send("<?xml version='1.0'?>"); - send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s' version='1.0'>", session.streamid, session.host)); + send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s' version='1.0' xml:lang='en'>", session.streamid, session.host)); if not hosts[session.host] then -- We don't serve this host...