mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +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)
|
||||
if ok then
|
||||
return statuscode, body
|
||||
elseif statuscode == 200 then
|
||||
error(body)
|
||||
else
|
||||
error(statuscode)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user