From 21f9cb4086a44904fc318c3ce58bd2d7adf6b49d Mon Sep 17 00:00:00 2001 From: Stimor Date: Mon, 29 Sep 2025 22:17:27 +0300 Subject: [PATCH] Update handshake.lua Cut out the excess. --- src/websocket/handshake.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/websocket/handshake.lua b/src/websocket/handshake.lua index b90d267..f7c51f2 100644 --- a/src/websocket/handshake.lua +++ b/src/websocket/handshake.lua @@ -17,7 +17,6 @@ local http_headers = function(request) return headers end request = request:match('[^\r\n]+\r\n(.*)') - local empty_line for line in request:gmatch('[^\r\n]*\r\n') do local name,val = line:match('([^%s]+)%s*:%s*([^\r\n]+)') if name and val then @@ -31,7 +30,6 @@ local http_headers = function(request) headers[name] = headers[name]..','..val end elseif line == '\r\n' then - empty_line = true else assert(false,line..'('..#line..')') end