diff options
author | 2023-09-13 19:01:19 -0700 | |
---|---|---|
committer | 2023-09-13 19:01:19 -0700 | |
commit | 5c9ba38e44b85e783c858457cc610cbab4e63bb0 (patch) | |
tree | 84606313110b3a88802cdfb7bfa6333e46d7d0a0 /src/js/node/http.ts | |
parent | f218068a3c50e9b65545c094221b4331272d01a2 (diff) | |
download | bun-5c9ba38e44b85e783c858457cc610cbab4e63bb0.tar.gz bun-5c9ba38e44b85e783c858457cc610cbab4e63bb0.tar.zst bun-5c9ba38e44b85e783c858457cc610cbab4e63bb0.zip |
fix destroy and re add native decompression
Diffstat (limited to 'src/js/node/http.ts')
-rw-r--r-- | src/js/node/http.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/node/http.ts b/src/js/node/http.ts index 9c760f7af..936fae1cd 100644 --- a/src/js/node/http.ts +++ b/src/js/node/http.ts @@ -654,7 +654,7 @@ class IncomingMessage extends Readable { if (this.aborted) return; if (done) { this.push(null); - this.destroy(); + process.nextTick(destroyBodyStreamNT, this); break; } for (var v of value) { @@ -1292,8 +1292,8 @@ class ClientRequest extends OutgoingMessage { // Timeouts are handled via this.setTimeout. timeout: false, - // Disable auto gzip/deflate - decompress: false, + // TODO: check zlib to disable this + decompress: true, }) .then(response => { var res = (this.#res = new IncomingMessage(response, { |