Mercurial > prosody-hg
comparison plugins/mod_websocket.lua @ 7937:5b03a8003659
mod_websocket: Include xml:lang attribute on stream <open> (fixes #840)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 02 Mar 2017 03:03:04 +0100 |
| parents | a6eb3b6bf903 |
| children | 3629f03817f8 |
comparison
equal
deleted
inserted
replaced
| 7936:582bfb39337f | 7937:5b03a8003659 |
|---|---|
| 52 | 52 |
| 53 --- Session methods | 53 --- Session methods |
| 54 local function session_open_stream(session) | 54 local function session_open_stream(session) |
| 55 local attr = { | 55 local attr = { |
| 56 xmlns = xmlns_framing, | 56 xmlns = xmlns_framing, |
| 57 ["xml:lang"] = "en", | |
| 57 version = "1.0", | 58 version = "1.0", |
| 58 id = session.streamid or "", | 59 id = session.streamid or "", |
| 59 from = session.host | 60 from = session.host |
| 60 }; | 61 }; |
| 61 session.send(st.stanza("open", attr)); | 62 session.send(st.stanza("open", attr)); |
