Commit 3952d1b3 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Disable s3 transport transparent compression/decompression

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit fd834832) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 6fe2bea9
......@@ -168,6 +168,12 @@ func (c *Controller) GetClient(ctx context.Context, etcdS3 *config.EtcdS3) (*Cli
}
tr := http.DefaultTransport.(*http.Transport).Clone()
// Set this value so that the underlying transport round-tripper
// doesn't try to auto decode the body of objects with
// content-encoding set to `gzip`.
// Ref: https://github.com/minio/minio-go/pull/752
tr.DisableCompression = true
// You can either disable SSL verification or use a custom CA bundle,
// it doesn't make sense to do both - if verification is disabled,
// the CA is not checked!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment