From 13f2b3c663d9fa5c464782a0bfccb30bcc017b0c Mon Sep 17 00:00:00 2001 From: _AMD_ Date: Mon, 13 Nov 2023 22:33:26 +0200 Subject: [PATCH] fix(http): Correct receiveheaders() handling of folded values (#420) --- src/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.lua b/src/http.lua index fbd5ff6..bda0744 100644 --- a/src/http.lua +++ b/src/http.lua @@ -62,7 +62,7 @@ local function receiveheaders(sock, headers) -- unfold any folded values while string.find(line, "^%s") do value = value .. line - line = sock:receive() + line, err = sock:receive() if err then return nil, err end end -- save pair in table