From d2dcaf517444e0cbec176a3bbb53ea39fae04589 Mon Sep 17 00:00:00 2001 From: HaidongPang Date: Thu, 7 Nov 2024 10:56:07 +0800 Subject: [PATCH] Clean up orphan ReadableStream remaining during parsing response (#648) --- source/core/Ky.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/Ky.ts b/source/core/Ky.ts index d69c03ef..60e51c15 100644 --- a/source/core/Ky.ts +++ b/source/core/Ky.ts @@ -90,7 +90,7 @@ export class Ky { const awaitedResult = await result; const response = awaitedResult.clone(); - + await awaitedResult.arrayBuffer(); if (type === 'json') { if (response.status === 204) { return '';