From dae4c1a7faf7ca81d7c08a3ae1c4ca748e3e2e9e Mon Sep 17 00:00:00 2001 From: shijl0925 <1213970695@qq.com> Date: Sat, 7 Sep 2024 15:22:20 +0800 Subject: [PATCH] update --- utils.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils.go b/utils.go index a7c79aa..6c0cfd5 100644 --- a/utils.go +++ b/utils.go @@ -37,7 +37,6 @@ func RemoveMagicPrefixLine(body []byte) []byte { } type ErrorResponse struct { - Body []byte Response *http.Response Message string } @@ -58,7 +57,6 @@ func CheckResponse(r *http.Response) error { errorResponse := &ErrorResponse{Response: r} data, err := io.ReadAll(r.Body) if err == nil && data != nil { - errorResponse.Body = data errorResponse.Message = string(data) }