Merge pull request #1 from hind3ight/master

当请求服务拒绝时会报错
This commit is contained in:
jjxu 2023-10-08 23:44:36 +08:00 committed by GitHub
commit db761d975d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,8 @@ func (s *SimpleRequest) do(request *http.Request) (body []byte, err error) {
//v0.0.2更新将request和response内容返回便于用户进行分析 JJXu 03-11-2022
if resp != nil {
s.Response = *resp
} else {
return
}
if request != nil {
s.Request = *request