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";