From 947618828368d5532f19cbfc54fea1480b516ee4 Mon Sep 17 00:00:00 2001 From: Khafra Date: Fri, 9 Feb 2024 13:14:13 -0500 Subject: [PATCH] remove useless options in web streams --- lib/fetch/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/fetch/index.js b/lib/fetch/index.js index 4b89b4a48e3..9e5dc12655c 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -1114,7 +1114,6 @@ function fetchFinale (fetchParams, response) { controller.enqueue(value) } }, - queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 }), type: 'bytes' }) @@ -1929,7 +1928,6 @@ async function httpNetworkFetch ( // cancelAlgorithm set to cancelAlgorithm. const stream = new ReadableStream( { - highWaterMark: 16384, async start (controller) { fetchParams.controller.controller = controller }, @@ -1939,8 +1937,7 @@ async function httpNetworkFetch ( async cancel (reason) { await cancelAlgorithm(reason) }, - type: 'bytes', - queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 }) + type: 'bytes' } )