aboutsummaryrefslogtreecommitdiff
path: root/src/socket.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.lua')
-rw-r--r--src/socket.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.lua b/src/socket.lua
index f73d167..0a681bf 100644
--- a/src/socket.lua
+++ b/src/socket.lua
@@ -156,8 +156,8 @@ socket.sourcet["http-chunked"] = function(sock)
156 else 156 else
157 -- get chunk and skip terminating CRLF 157 -- get chunk and skip terminating CRLF
158 local chunk, err = sock:receive(size) 158 local chunk, err = sock:receive(size)
159 if err or socket.skip(2, sock:receive()) then return nil, err 159 if chunk then sock:receive() end
160 else return chunk end 160 return chunk, err
161 end 161 end
162 end 162 end
163 }) 163 })