# HG changeset patch # User Florian Zeitz # Date 1338164284 -7200 # Node ID 7d165cd6168c22eb32894ae7f1dfd3e2a16d08a9 # Parent 2de21fa403820b065c13045c7c18924cdb9c1fff mod_websocket: Only un-self-close s diff -r 2de21fa40382 -r 7d165cd6168c mod_websocket/mod_websocket.lua --- 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 if self_closing_stream then - data = data:gsub("/>$", ">"); + data = data:gsub("($", "%1>"); end data = filter("bytes/in", data);