mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-24 00:40:05 +08:00
fix: Fetch miss ua
This commit is contained in:
parent
87737a8bdb
commit
80e64af30f
@ -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}`);
|
if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`);
|
||||||
|
|
||||||
const blob = await fetchRes.blob();
|
const blob = await fetchRes.blob();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user