update
This commit is contained in:
@@ -232,8 +232,10 @@ func (r *Request) Do(method, rawUrl string) (*Response, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if res.StatusCode != http.StatusOK {
|
||||
return nil, fmt.Errorf("status code err: %d (%s)", res.StatusCode, body)
|
||||
if r.httpClient.config.noCheckStatus == false {
|
||||
if res.StatusCode != http.StatusOK {
|
||||
return nil, fmt.Errorf("status code err: %d (%s)", res.StatusCode, body)
|
||||
}
|
||||
}
|
||||
|
||||
resp := &Response{
|
||||
|
||||
Reference in New Issue
Block a user