Software /
code /
prosody
Diff
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 |
parent | 7914:a6eb3b6bf903 |
child | 7938:3629f03817f8 |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Thu Mar 02 00:46:32 2017 +0100 +++ b/plugins/mod_websocket.lua Thu Mar 02 03:03:04 2017 +0100 @@ -54,6 +54,7 @@ local function session_open_stream(session) local attr = { xmlns = xmlns_framing, + ["xml:lang"] = "en", version = "1.0", id = session.streamid or "", from = session.host