From abcb3b3d287a09ddbb8b16d9a54d212e2494780e Mon Sep 17 00:00:00 2001 From: foxhui Date: Fri, 12 Dec 2025 02:24:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=20GitHub=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/init.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/utils/init.js b/lib/utils/init.js index c9b8172..dfdfa51 100644 --- a/lib/utils/init.js +++ b/lib/utils/init.js @@ -116,11 +116,12 @@ async function downloadFileOnce(url, destPath, proxyUrl = null) { retry: { limit: 0 }, - headerGeneratorOptions: { - browsers: [{ name: 'firefox', minVersion: 100 }], - devices: ['desktop'], - locales: ['en-US'], - operatingSystems: ['windows'], + headerGeneratorOptions: null, + headers: { + 'user-agent': 'Wget/1.21.4 (linux-gnu)', + 'accept': '*/*', + 'accept-encoding': 'identity', + 'connection': 'keep-alive' } };