summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/http.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-29 01:29:01 +0200
committerGitHub <noreply@github.com>2023-05-29 01:29:01 +0200
commitcf8b7bb53061ded139626378cf73c7b05f747eb9 (patch)
treed9a77a543cd6d5b808b91bda4295682bf4eaed3a /ext/node/polyfills/http.ts
parent429da4ee2d3cfd5dd0cf24d5f7953cc21bc878b4 (diff)
fix(node): http.IncomingMessageForClient.complete (#19302)
Closes https://github.com/denoland/deno/issues/19238
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r--ext/node/polyfills/http.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 4e72b80f8..71186e4e7 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -970,6 +970,7 @@ export class IncomingMessageForClient extends NodeReadable {
// any messages, before ever calling this. In that case, just skip
// it, since something else is destroying this connection anyway.
_destroy(err, cb) {
+ this.complete = true;
if (!this.readableEnded || !this.complete) {
this.aborted = true;
this.emit("aborted");