aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_websocket.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-02 03:03:04 +0100
committerKim Alvefur <zash@zash.se>2017-03-02 03:03:04 +0100
commit41ef96b42ec9e3b43b6767dbcc4782a446191165 (patch)
tree308868a2399f46d9088d67ae108d7d716b3d72ea /plugins/mod_websocket.lua
parentdb1a8151988bbdba535201b6e1313c41d29e2a3f (diff)
downloadprosody-41ef96b42ec9e3b43b6767dbcc4782a446191165.tar.gz
prosody-41ef96b42ec9e3b43b6767dbcc4782a446191165.zip
mod_websocket: Include xml:lang attribute on stream <open> (fixes #840)
Diffstat (limited to 'plugins/mod_websocket.lua')
-rw-r--r--plugins/mod_websocket.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index 47d170a1..01f2fa5b 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -54,6 +54,7 @@ local c2s_listener = portmanager.get_service("c2s").listener;
local function session_open_stream(session)
local attr = {
xmlns = xmlns_framing,
+ ["xml:lang"] = "en",
version = "1.0",
id = session.streamid or "",
from = session.host