fix(http): Correct receiveheaders() handling of folded values (#420)

This commit is contained in:
_AMD_ 2023-11-13 22:33:26 +02:00 committed by GitHub
parent 453a5207ed
commit 13f2b3c663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ local function receiveheaders(sock, headers)
-- unfold any folded values -- unfold any folded values
while string.find(line, "^%s") do while string.find(line, "^%s") do
value = value .. line value = value .. line
line = sock:receive() line, err = sock:receive()
if err then return nil, err end if err then return nil, err end
end end
-- save pair in table -- save pair in table