Update httpc.request (#1822)

This commit is contained in:
zhuilang
2023-11-15 22:11:24 +08:00
committed by GitHub
parent 8b5bbaabd9
commit 6249062c2d

View File

@@ -114,6 +114,8 @@ function httpc.request(method, hostname, url, recvheader, header, content)
close_interface(interface, fd)
if ok then
return statuscode, body
elseif statuscode == 200 then
error(body)
else
error(statuscode)
end