From cd2eaf465accf2bd6889552865cde0c5bbdc5c41 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 22 Mar 2024 18:42:25 +0100 Subject: [PATCH] fix(fetch): pause stream if data is received before headers in HTTP/2 --- lib/web/fetch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/fetch/index.js b/lib/web/fetch/index.js index d8c20c59bf7..a3654271183 100644 --- a/lib/web/fetch/index.js +++ b/lib/web/fetch/index.js @@ -2230,7 +2230,7 @@ async function httpNetworkFetch ( // 4. See pullAlgorithm... - return this.body.push(bytes) + return this.body ? this.body.push(bytes) : false }, onComplete () {