mod_websocket: Make sure stanza xmlns filter runs late in the chain
authorKim Alvefur <zash@zash.se>
Fri, 18 Mar 2016 00:08:33 +0100
changeset 7297 5f4d0753c818
parent 7296 c4af754d1e1b
child 7298 5f9c8204270f
child 7299 1859e07ae082
child 7301 7056bbaf81ee
mod_websocket: Make sure stanza xmlns filter runs late in the chain
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)});