Software /
code /
prosody
Diff
core/sessionmanager.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 | 1395:1c547fb4e570 |
child | 1469:9f2b6e2bc498 |
line wrap: on
line diff
--- 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...