mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
update
This commit is contained in:
@@ -23,7 +23,7 @@ func (c *Client) checkResponse(res *resty.Response, path string, err error) erro
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("request %s failed: %s", c.assembleURL(path), err)
|
return fmt.Errorf("request %s failed: %s", c.assembleURL(path), err)
|
||||||
}
|
}
|
||||||
if res.StatusCode() > 400 {
|
if res.StatusCode() != 200 {
|
||||||
body := res.Body()
|
body := res.Body()
|
||||||
return fmt.Errorf("request %s failed: %s, %s", c.assembleURL(path), string(body), err)
|
return fmt.Errorf("request %s failed: %s, %s", c.assembleURL(path), string(body), err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user