diff --git a/proxy/proxy.go b/proxy/proxy.go index 341ea70..4b0823f 100755 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -64,8 +64,7 @@ func (s *StriveAPIProxy) HandleCatchall(w http.ResponseWriter, r *http.Request) w.Header()[name] = values } w.WriteHeader(resp.StatusCode) - reader := io.TeeReader(resp.Body, w) // For dumping API payloads - _, err = io.ReadAll(reader) + _, err = io.Copy(w, resp.Body) if err != nil { fmt.Println(err) }