Skip to content

Commit

Permalink
fix destroy and re add native decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Sep 14, 2023
1 parent f218068 commit 5c9ba38
Show file tree
Hide file tree
Showing 6 changed files with 6,964 additions and 6,964 deletions.
6 changes: 3 additions & 3 deletions src/js/node/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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, {
Expand Down
6 changes: 3 additions & 3 deletions src/js/out/InternalModuleRegistryConstants.h

Large diffs are not rendered by default.

Loading

0 comments on commit 5c9ba38

Please sign in to comment.