Dont try lazy decode content in proxyToFiler if no accept-encoding provided (#5907)

This commit is contained in:
Oleg Salionov 2024-08-19 14:51:17 +10:00 committed by GitHub
parent e8462ba3ad
commit 4cfc7d3b10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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