mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-07 10:03:15 +08:00
feat: 域名解析支持自定义 DoH(需新版前端)
This commit is contained in:
3
backend/src/vendor/open-api.js
vendored
3
backend/src/vendor/open-api.js
vendored
@@ -341,7 +341,10 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
|
||||
const request = isNode
|
||||
? eval("require('request')")
|
||||
: $httpClient;
|
||||
const body = options.body;
|
||||
const opts = JSON.parse(JSON.stringify(options));
|
||||
opts.body = body;
|
||||
|
||||
if (!isNode && opts.timeout) {
|
||||
opts.timeout++;
|
||||
let unit = 'ms';
|
||||
|
||||
Reference in New Issue
Block a user