Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1449:6a90316a81c3 | 1450:c1c7b27b983b |
---|---|
251 cl.register_outgoing(conn, host_session); | 251 cl.register_outgoing(conn, host_session); |
252 | 252 |
253 local w = conn.write; | 253 local w = conn.write; |
254 host_session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end | 254 host_session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end |
255 | 255 |
256 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)); | 256 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)); |
257 log("debug", "Connection attempt in progress..."); | 257 log("debug", "Connection attempt in progress..."); |
258 return true; | 258 return true; |
259 end | 259 end |
260 | 260 |
261 function streamopened(session, attr) | 261 function streamopened(session, attr) |