From cf8b7bb53061ded139626378cf73c7b05f747eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 29 May 2023 01:29:01 +0200 Subject: fix(node): http.IncomingMessageForClient.complete (#19302) Closes https://github.com/denoland/deno/issues/19238 --- ext/node/polyfills/http.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/node/polyfills/http.ts') 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"); -- cgit v1.2.3