Skip to content

Commit

Permalink
Use minimal data URL for loading fetch() (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwenko authored Jul 30, 2024
1 parent 3fd5cb0 commit e44a4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function contentLengthFromResponseHeaders(headers: Buffer[]) {

async function loadFetch() {
try {
await fetch('');
await fetch('data:text');
} catch (_) {
//
}
Expand Down

0 comments on commit e44a4c3

Please sign in to comment.