From 4633eb56fbfda4ba0e5d790203282f374c8a8079 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 18 Mar 2016 00:08:33 +0100 Subject: mod_websocket: Make sure stanza xmlns filter runs late in the chain --- plugins/mod_websocket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_websocket.lua') diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index 418cd846..274e587a 100644 --- 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)}); -- cgit v1.2.3