Software /
code /
prosody
Comparison
plugins/mod_websocket.lua @ 10097:1f45d316b222
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Jul 2019 16:43:47 +0200 |
parent | 9806:b72d2f4153f7 |
parent | 10092:4b3c129e96f2 |
child | 10111:0f335815244f |
comparison
equal
deleted
inserted
replaced
10096:46a7792fdac5 | 10097:1f45d316b222 |
---|---|
270 end | 270 end |
271 return t_concat(cache, ""); | 271 return t_concat(cache, ""); |
272 end); | 272 end); |
273 | 273 |
274 add_filter(session, "stanzas/out", function(stanza) | 274 add_filter(session, "stanzas/out", function(stanza) |
275 stanza = st.clone(stanza); | |
275 local attr = stanza.attr; | 276 local attr = stanza.attr; |
276 attr.xmlns = attr.xmlns or xmlns_client; | 277 attr.xmlns = attr.xmlns or xmlns_client; |
277 if stanza.name:find("^stream:") then | 278 if stanza.name:find("^stream:") then |
278 attr["xmlns:stream"] = attr["xmlns:stream"] or xmlns_streams; | 279 attr["xmlns:stream"] = attr["xmlns:stream"] or xmlns_streams; |
279 end | 280 end |