# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1458256113 -3600
# Node ID 5f4d0753c818d40a6ba23b41fab43de535ed1a95
# Parent  c4af754d1e1bb79192f9024750d810a2a5d85194
mod_websocket: Make sure stanza xmlns filter runs late in the chain

diff -r c4af754d1e1b -r 5f4d0753c818 plugins/mod_websocket.lua
--- a/plugins/mod_websocket.lua	Thu Mar 17 22:25:56 2016 +0100
+++ b/plugins/mod_websocket.lua	Fri Mar 18 00:08:33 2016 +0100
@@ -275,7 +275,7 @@
 			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)});