diff options
author | _AMD_ <amd@default.im> | 2023-11-13 22:33:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 23:33:26 +0300 |
commit | 13f2b3c663d9fa5c464782a0bfccb30bcc017b0c (patch) | |
tree | efd161a55810ec559ba4031c469af89a67d6c109 /src | |
parent | 453a5207eda52939181233bffffa67171ef838bd (diff) | |
download | luasocket-13f2b3c663d9fa5c464782a0bfccb30bcc017b0c.tar.gz luasocket-13f2b3c663d9fa5c464782a0bfccb30bcc017b0c.tar.bz2 luasocket-13f2b3c663d9fa5c464782a0bfccb30bcc017b0c.zip |
fix(http): Correct receiveheaders() handling of folded values (#420)
Diffstat (limited to 'src')
-rw-r--r-- | src/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
62 | -- unfold any folded values | 62 | -- unfold any folded values |
63 | while string.find(line, "^%s") do | 63 | while string.find(line, "^%s") do |
64 | value = value .. line | 64 | value = value .. line |
65 | line = sock:receive() | 65 | line, err = sock:receive() |
66 | if err then return nil, err end | 66 | if err then return nil, err end |
67 | end | 67 | end |
68 | -- save pair in table | 68 | -- save pair in table |