Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Apr 21, 2024
1 parent 97bc784 commit 0a69777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file.js
Expand Up @@ -771,7 +771,7 @@ export async function getAssetPaths(document, file, options = {}, strict = true)
*/
export async function vinylize(src, options = {}) {
const {filepath, html} = src;
const {rebase = {}} = options;
const {rebase = {}, request = {}} = options;
const file = new Vinyl();
file.cwd = '/';
file.remote = false;
Expand All @@ -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: {...options.request, method: 'head'}});
const response = await fetch(filepath, {...options, request: {...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 0a69777

Please sign in to comment.