mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-01 03:53:20 +08:00
feat: GUIforCores 请求增加参数 proxy, timeout
This commit is contained in:
6
backend/src/vendor/open-api.js
vendored
6
backend/src/vendor/open-api.js
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user