mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Update httpc.request (#1822)
This commit is contained in:
@@ -114,6 +114,8 @@ function httpc.request(method, hostname, url, recvheader, header, content)
|
|||||||
close_interface(interface, fd)
|
close_interface(interface, fd)
|
||||||
if ok then
|
if ok then
|
||||||
return statuscode, body
|
return statuscode, body
|
||||||
|
elseif statuscode == 200 then
|
||||||
|
error(body)
|
||||||
else
|
else
|
||||||
error(statuscode)
|
error(statuscode)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user