Skip to content

Commit

Permalink
chore: fix redefine variable
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Dec 17, 2023
1 parent 8d95b6c commit e636e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function send_http_request(sock, method, path, headers, body)
end

if type(body) == 'string' then
local _, err = sock:send(body)
_, err = sock:send(body)
if err then
return false, 'send body fail: ' .. err
end
Expand Down

0 comments on commit e636e79

Please sign in to comment.