feat: GUIforCores 请求增加参数 proxy, timeout

This commit is contained in:
xream
2024-05-30 17:19:38 +08:00
parent 9e64a68481
commit 3f620700a4
2 changed files with 7 additions and 1 deletions

View File

@@ -382,6 +382,12 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
url: options.url,
headers: options.headers,
body: options.body,
options: {
Proxy: options.proxy,
Timeout: options.timeout
? options.timeout / 1000
: 15,
},
});
resolve({
statusCode: response.status,