Software /
code /
prosody
Diff
core/s2smanager.lua @ 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 |
parent | 1345:35b5686d73ea |
child | 1468:83b297a412a2 |
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