Changeset

693:7d165cd6168c

mod_websocket: Only un-self-close <stream:stream>s
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 28 May 2012 02:18:04 +0200
parents 692:2de21fa40382
children 694:02fcb102b9aa
files mod_websocket/mod_websocket.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_websocket/mod_websocket.lua	Mon May 28 00:52:47 2012 +0200
+++ b/mod_websocket/mod_websocket.lua	Mon May 28 02:18:04 2012 +0200
@@ -290,7 +290,7 @@
 
 			-- COMPAT: Current client implementations send a self-closing <stream:stream>
 			if self_closing_stream then
-				data = data:gsub("/>$", ">");
+				data = data:gsub("(<stream:stream.*)/>$", "%1>");
 			end
 
 			data = filter("bytes/in", data);