Skip to content

Commit f2b1838

Browse files
committed
Return values mismatch (status, version, err). Fixes #69
1 parent 33b5dca commit f2b1838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resty/http.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,14 @@ end
500500
local function _handle_continue(sock, body)
501501
local status, version, reason, err = _receive_status(sock)
502502
if not status then
503-
return nil, err
503+
return nil, nil, err
504504
end
505505

506506
-- Only send body if we receive a 100 Continue
507507
if status == 100 then
508508
local ok, err = sock:receive("*l") -- Read carriage return
509509
if not ok then
510-
return nil, err
510+
return nil, nil, err
511511
end
512512
_send_body(sock, body)
513513
end

0 commit comments

Comments
 (0)