projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_websocket: Make sure stanza xmlns filter runs late in the chain
[prosody.git]
/
plugins
/
mod_websocket.lua
diff --git
a/plugins/mod_websocket.lua
b/plugins/mod_websocket.lua
index 418cd84639f0aa07df2ec6d3d9c512103eeee6be..274e587a1ca1fdcc6204491906c1a66ddad127ff 100644
(file)
--- a/
plugins/mod_websocket.lua
+++ b/
plugins/mod_websocket.lua
@@
-275,7
+275,7
@@
function handle_request(event)
attr["xmlns:stream"] = attr["xmlns:stream"] or xmlns_streams;
end
return stanza;
- end);
+ end
, -1000
);
add_filter(session, "bytes/out", function(data)
return build_frame({ FIN = true, opcode = 0x01, data = tostring(data)});