mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-25 17:44:02 +08:00
fix: remove unnecessary status code check in Request method
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0-250716
|
||||
v5.0.0-250717
|
||||
|
||||
@@ -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