diff --git a/changelogs/unreleased/2712-fvsqr b/changelogs/unreleased/2712-fvsqr new file mode 100644 index 000000000..3f538fae9 --- /dev/null +++ b/changelogs/unreleased/2712-fvsqr @@ -0,0 +1 @@ +StorageGrid compatibility by removing explicit gzip accept header setting diff --git a/pkg/cmd/util/downloadrequest/downloadrequest.go b/pkg/cmd/util/downloadrequest/downloadrequest.go index bef8dd865..f302ba8fd 100644 --- a/pkg/cmd/util/downloadrequest/downloadrequest.go +++ b/pkg/cmd/util/downloadrequest/downloadrequest.go @@ -139,11 +139,6 @@ Loop: return err } - // Manually set this header so the net/http library does not automatically try to decompress. We - // need to handle this manually because it's not currently possible to set the MIME type for the - // pre-signed URLs for GCP or Azure. - httpReq.Header.Set("Accept-Encoding", "gzip") - resp, err := httpClient.Do(httpReq) if err != nil { if urlErr, ok := err.(*url.Error); ok {