From abc6ea1ee42d78f1db77da47c895f1e52e294a9c Mon Sep 17 00:00:00 2001 From: yoan <536464346@qq.com> Date: Thu, 5 Sep 2024 10:30:57 +0800 Subject: [PATCH] Add qiniu deployer --- internal/utils/http/http.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/utils/http/http.go b/internal/utils/http/http.go index 47fa6f88..743fa015 100644 --- a/internal/utils/http/http.go +++ b/internal/utils/http/http.go @@ -66,9 +66,6 @@ func ToRequest(req *http.Request, opts ...Option) (io.ReadCloser, error) { } if res.StatusCode != http.StatusOK { - defer res.Body.Close() - body, _ := io.ReadAll(res.Body) - fmt.Println(string(body)) return nil, fmt.Errorf("status code is not 200: %d", res.StatusCode) }