do not auto-decompress objects with content-encoding (#4777)

fixes #4769
This commit is contained in:
Harshavardhana
2023-12-01 18:03:28 -08:00
committed by GitHub
parent b7a7b05395
commit f5f7147b9e
+2
View File
@@ -957,6 +957,8 @@ func (c *S3Client) Get(ctx context.Context, opts GetOptions) (io.ReadCloser, *pr
return nil, probe.NewError(err)
}
}
// Disallow automatic decompression for some objects with content-encoding set.
o.Set("Accept-Encoding", "identity")
reader, e := c.api.GetObject(ctx, bucket, object, o)
if e != nil {