Browse Source

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

pull/5910/head
Oleg Salionov 4 months ago
committed by GitHub
parent
commit
4cfc7d3b10
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      weed/s3api/s3api_object_handlers.go

1
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("X-Forwarded-For", r.RemoteAddr)
proxyReq.Header.Set("Accept-Encoding", "identity")
for k, v := range r.URL.Query() { for k, v := range r.URL.Query() {
if _, ok := s3_constants.PassThroughHeaders[strings.ToLower(k)]; ok { if _, ok := s3_constants.PassThroughHeaders[strings.ToLower(k)]; ok {
proxyReq.Header[k] = v proxyReq.Header[k] = v

Loading…
Cancel
Save