From a3c4516cfe6209cbb8704146e2852e49c25e68dd Mon Sep 17 00:00:00 2001 From: Jon Sharratt Date: Thu, 22 Oct 2015 18:28:31 +0100 Subject: [PATCH] Delete content-encoding header --- src/body.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body.js b/src/body.js index a1c41fb..1970791 100644 --- a/src/body.js +++ b/src/body.js @@ -139,7 +139,7 @@ export default class Body extends EventEmitter { } return streams.collect(readable) .then(buffer => { - this.headers['content-encoding'] = undefined + delete this.headers['content-encoding']; this._source = streams.from(buffer) }) }