diff --git a/backend/internal/http/router/handlers-web.go b/backend/internal/http/router/handlers-web.go index 8355b9e1c..895c94279 100644 --- a/backend/internal/http/router/handlers-web.go +++ b/backend/internal/http/router/handlers-web.go @@ -29,9 +29,7 @@ func (e *Router) readBody(w http.ResponseWriter, r *http.Request, limit int64) ( // Check if body is gzipped and decompress it if r.Header.Get("Content-Encoding") == "gzip" { - // Debug log - log.Printf("request body is gzipped") - // + s := time.Now() reader, err := gzip.NewReader(body) if err != nil { return nil, fmt.Errorf("can't create gzip reader: %s", err) @@ -41,6 +39,8 @@ func (e *Router) readBody(w http.ResponseWriter, r *http.Request, limit int64) ( return nil, fmt.Errorf("can't read gzip body: %s", err) } reader.Close() + // Debug log + log.Printf("request body was gzipped, decompressed in %s", time.Since(s)) } else { bodyBytes, err = io.ReadAll(body) }