diff --git a/repo/blob/webdav/webdav_storage.go b/repo/blob/webdav/webdav_storage.go index 88b6a5783..24dc2b7a4 100644 --- a/repo/blob/webdav/webdav_storage.go +++ b/repo/blob/webdav/webdav_storage.go @@ -197,6 +197,9 @@ func isRetriable(err error) bool { func New(ctx context.Context, opts *Options) (blob.Storage, error) { cli := gowebdav.NewClient(opts.URL, opts.Username, opts.Password) + // Since we're handling encrypted data, there's no point compressing it server-side. + cli.SetHeader("Accept-Encoding", "identity") + if opts.TrustedServerCertificateFingerprint != "" { cli.SetTransport(tlsutil.TransportTrustingSingleCertificate(opts.TrustedServerCertificateFingerprint)) }