mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: 修复截图错误
This commit is contained in:
@@ -308,6 +308,9 @@ 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