Skip to content

Commit

Permalink
fix: remove http layer debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc Sárai committed Jul 19, 2024
1 parent cb3af1f commit 9f5341c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pkg/bee/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"io"
"net/http"
"net/http/httputil"
"net/url"
"strconv"
"strings"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9f5341c

Please sign in to comment.