Skip to content

Commit

Permalink
Fix placeholder URL (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 17, 2023
1 parent 53ce279 commit 780e032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/constants.ts
Expand Up @@ -8,7 +8,7 @@ export const supportsRequestStreams = (() => {
const supportsRequest = typeof globalThis.Request === 'function';

if (supportsReadableStream && supportsRequest) {
hasContentType = new globalThis.Request('https://a.com', {
hasContentType = new globalThis.Request('https://empty.invalid', {
body: new globalThis.ReadableStream(),
method: 'POST',
// @ts-expect-error - Types are outdated.
Expand Down

0 comments on commit 780e032

Please sign in to comment.