aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitf6e6bc0bd98cd80284856cca780442361c6f1f88 (patch)
tree308868a2399f46d9088d67ae108d7d716b3d72ea /plugins
parent3bf3935e78e682642593f783762bc648a65f4d72 (diff)
downloadprosody-f6e6bc0bd98cd80284856cca780442361c6f1f88.tar.gz
prosody-f6e6bc0bd98cd80284856cca780442361c6f1f88.zip
mod_websocket: Include xml:lang attribute on stream <open> (fixes #840)
Diffstat (limited to 'plugins')
-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