diff --git a/lib/index.js b/lib/index.js index 898c8125..cf563add 100644 --- a/lib/index.js +++ b/lib/index.js @@ -70,7 +70,7 @@ function regFetch (uri, /* istanbul ignore next */ opts_ = {}) { } if (opts.gzip) { - headers['content-encoding'] = 'gzip' + headers['accept-encoding'] = 'gzip' if (bodyIsStream) { const gz = new zlib.Gzip() body.on('error', /* istanbul ignore next: unlikely and hard to test */