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