From 4cfc7d3b105da1d67c1ef31822cee18e0d6ad693 Mon Sep 17 00:00:00 2001 From: Oleg Salionov Date: Mon, 19 Aug 2024 14:51:17 +1000 Subject: [PATCH] Dont try lazy decode content in proxyToFiler if no accept-encoding provided (#5907) --- weed/s3api/s3api_object_handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 3ab72285f..5f3631b89 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -149,6 +149,7 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, des } proxyReq.Header.Set("X-Forwarded-For", r.RemoteAddr) + proxyReq.Header.Set("Accept-Encoding", "identity") for k, v := range r.URL.Query() { if _, ok := s3_constants.PassThroughHeaders[strings.ToLower(k)]; ok { proxyReq.Header[k] = v