mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
modify httpc.request (#1823)
* modify httpc.request 这样可能更好点 * modify httpc.request
This commit is contained in:
@@ -114,10 +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)
|
||||
error(body or statuscode)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user