mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
fix: remove unnecessary status code check in Request method
This commit is contained in:
@@ -308,9 +308,6 @@ func (s *DriverSession) Request(method string, urlStr string, rawBody []byte, op
|
||||
}
|
||||
|
||||
if err = rawResp.CheckErr(); err != nil {
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
return rawResp, nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user