diff --git a/src/common/utils/file.ts b/src/common/utils/file.ts index 3b7f5c71..d5ccf4a1 100644 --- a/src/common/utils/file.ts +++ b/src/common/utils/file.ts @@ -148,6 +148,8 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi }; if (typeof options === 'string') { url = options; + const host = new URL(url).hostname; + headers['Host'] = host; } else { url = options.url; if (options.headers) {