Skip to content

Commit

Permalink
fix: pass method to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Sep 24, 2024
1 parent 8f653d4 commit 1ea25b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ipfs-gateway-race/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export async function gatewayFetch (
isRangeRequest(headers) ||
isAlternateFormatRequest(headers, url.searchParams)
) {
response = await fetch(url, { signal, headers })
response = await fetch(url, { method, signal, headers })
} else {
// Otherwise use the unixfs downloader to make byte range requests
// upstream allowing big files to be downloaded without exhausting the
Expand Down

0 comments on commit 1ea25b2

Please sign in to comment.