diff --git a/src/file.js b/src/file.js index b430f7b..e7993da 100644 --- a/src/file.js +++ b/src/file.js @@ -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;