Skip to content

Commit

Permalink
Only handle unsupported BodyInit type error
Browse files Browse the repository at this point in the history
  • Loading branch information
edram committed Jun 23, 2024
1 parent 06ca9ca commit 8f7e484
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ export const supportsRequestStreams = (() => {
return 'half';
},
}).headers.has('Content-Type');
} catch {
} catch (error) {
// IOS QQBrowser throw "unsupported BodyInit type" Error (see issue #581)
if (error instanceof Error && error.message == "unsupported BodyInit type") {

Check failure on line 24 in source/core/constants.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Expected '===' and instead saw '=='.

Check failure on line 24 in source/core/constants.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Strings must use singlequote.
return false;
}

throw error;
}
}

Expand Down

0 comments on commit 8f7e484

Please sign in to comment.