Add DisableCompression to override auto-decompress (#2216)

Fixes https://github.com/minio/mc/issues/2209
This commit is contained in:
A. Elleuch
2017-07-20 11:32:23 -07:00
committed by Dee Koder
parent b4d7ec07f4
commit eba548ca88
+7
View File
@@ -133,6 +133,13 @@ func newFactory() func(config *Config) (Client, *probe.Error) {
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: tlsConfig,
// 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`.
//
// Refer:
// https://golang.org/src/net/http/transport.go?h=roundTrip#L1843
DisableCompression: true,
}
if config.Debug {