diff --git a/src/common/file.ts b/src/common/file.ts index c75bcce4..180cf6d1 100644 --- a/src/common/file.ts +++ b/src/common/file.ts @@ -115,7 +115,7 @@ async function tryDownload(options: string | HttpDownloadOptions, useReferer: bo if (useReferer && !headers['Referer']) { headers['Referer'] = url; } - const fetchRes = await fetch(url, { headers }).catch((err) => { + const fetchRes = await fetch(url, { headers, redirect: 'follow' }).catch((err) => { if (err.cause) { throw err.cause; }