Changeset

10097:1f45d316b222

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 28 Jul 2019 16:43:47 +0200
parents 10096:46a7792fdac5 (current diff) 10092:4b3c129e96f2 (diff)
children 10098:dda1c7ccb209
files plugins/mod_websocket.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_websocket.lua	Sun Jul 28 16:17:23 2019 +0200
+++ b/plugins/mod_websocket.lua	Sun Jul 28 16:43:47 2019 +0200
@@ -272,6 +272,7 @@
 	end);
 
 	add_filter(session, "stanzas/out", function(stanza)
+		stanza = st.clone(stanza);
 		local attr = stanza.attr;
 		attr.xmlns = attr.xmlns or xmlns_client;
 		if stanza.name:find("^stream:") then