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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
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 |
|
|
|