From e11a6a0ca98196c239bd3f65c92be847abdc6898 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 8 Oct 2024 17:19:25 +0200 Subject: [PATCH] Update fetch.ts --- src/fetch.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fetch.ts b/src/fetch.ts index 5a3b0431..ec1141d6 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -195,9 +195,7 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch { const hasBody = (context.response.body || - // React Native whatwg-fetch check. Can be removed when the following occurs - // 1) https://github.com/JakeChampion/fetch/issues/1454 is fixed - // 2) React Native upgrades to the whatwg-fetch version that has this fix + // https://github.com/JakeChampion/fetch/issues/1454 (context.response as any)._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD";