Skip to content

Commit 2a9d077

Browse files
committed
Fix custom request body socket
1 parent ee6c701 commit 2a9d077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resty/http.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@ end
729729
function _M.get_client_body_reader(self, chunksize, sock)
730730
local chunksize = chunksize or 65536
731731
if not sock then
732-
local ok, sock, err = pcall(ngx_req_socket)
732+
local ok, err
733+
ok, sock, err = pcall(ngx_req_socket)
733734

734735
if not ok then
735736
return nil, sock -- pcall err

0 commit comments

Comments
 (0)