mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
Dont try lazy decode content in proxyToFiler if no accept-encoding provided (#5907)
This commit is contained in:
parent
e8462ba3ad
commit
4cfc7d3b10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user