mod_websocket: Make sure stanza xmlns filter runs late in the chain
authorKim Alvefur <zash@zash.se>
Thu, 17 Mar 2016 23:08:33 +0000 (00:08 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 17 Mar 2016 23:08:33 +0000 (00:08 +0100)
plugins/mod_websocket.lua

index 418cd84639f0aa07df2ec6d3d9c512103eeee6be..274e587a1ca1fdcc6204491906c1a66ddad127ff 100644 (file)
@@ -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)});