mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
fix: 兼容 GitHub Actions
This commit is contained in:
+6
-5
@@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user