From 9f5341ce3b1a8484450a6aa4eea86bcb0eeb31ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20S=C3=A1rai?= Date: Fri, 19 Jul 2024 18:26:07 +0200 Subject: [PATCH] fix: remove http layer debug --- pkg/bee/api/api.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pkg/bee/api/api.go b/pkg/bee/api/api.go index 18de15eb0..1b6b64596 100644 --- a/pkg/bee/api/api.go +++ b/pkg/bee/api/api.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "net/http" - "net/http/httputil" "net/url" "strconv" "strings" @@ -117,16 +116,7 @@ func httpClientWithTransport(baseURL *url.URL, c *http.Client) *http.Client { return nil, err } r.URL = u - - bytes, _ := httputil.DumpRequestOut(r, true) - re, err := transport.RoundTrip(r) - respBytes, _ := httputil.DumpResponse(re, true) - bytes = append(bytes, respBytes...) - if !strings.Contains(r.URL.String(), "stamps") { - fmt.Printf("---%s: %s\n", baseURL.String(), bytes) - } - - return re, err + return transport.RoundTrip(r) }) return c }