release: v2.4.9

This commit is contained in:
手瓜一十雪
2024-09-12 19:47:57 +08:00
parent 46e56ac726
commit edf80775b7
7 changed files with 15 additions and 6 deletions

View File

@@ -128,6 +128,7 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
let url: string;
let headers: Record<string, string> = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36',
'referer': typeof options === 'string' ? options : options.url,
};
if (typeof options === 'string') {
url = options;