Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/websocket/handshake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down