mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +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 err = rawResp.CheckErr(); err != nil {
|
||||||
if resp.StatusCode == http.StatusOK {
|
|
||||||
return rawResp, nil
|
|
||||||
}
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user