Skip to content

Commit

Permalink
fix options passed to head request
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Apr 21, 2024
1 parent bac1a7c commit 97bc784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export async function vinylize(src, options = {}) {
} else if (filepath && isRemote(filepath)) {
let url = filepath;
try {
const response = await fetch(filepath, {options, request: {method: 'head'}});
const response = await fetch(filepath, {...options, request: {...options.request, method: 'head'}});
if (response.url !== url) {
debug(`(vinylize) found redirect from ${url} to ${response.url}`);
url = response.url;
Expand Down

0 comments on commit 97bc784

Please sign in to comment.