fix: Fetch miss ua

This commit is contained in:
linyuchen 2024-05-12 21:46:13 +08:00
parent 87737a8bdb
commit 80e64af30f

View File

@ -125,7 +125,7 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
}
}
}
const fetchRes = await fetch(url, headers);
const fetchRes = await fetch(url, { headers });
if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`);
const blob = await fetchRes.blob();