diff --git a/client.go b/client.go index 41eb8f6..8bf5c46 100644 --- a/client.go +++ b/client.go @@ -159,9 +159,6 @@ func (hc *HttpClient) Request() *define.Response { for i := 0; i < hc.reqConfig.RetryRule.RetryCount+1; i++ { response.Seq++ response.RequestCount++ - response.Header = map[string]string{} - response.Cookie = map[string]string{} - response.Body = map[string]any{} if response.RestyResponse, err = hc.request.Send(); nil != err { response.FailInfo = &define.ResponseFailInfo{ Type: define.RequestFailTypeSend, @@ -203,7 +200,7 @@ func (hc *HttpClient) newResponse() *define.Response { return &define.Response{ Header: map[string]string{}, Cookie: map[string]string{}, - Body: map[string]any{}, + Body: "", Code: "", Message: "", Data: "",