mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-12 17:06:57 +08:00
修复QX请求头没有Stringify导致请求超时的问题
This commit is contained in:
@@ -3123,7 +3123,10 @@ function HTTP(defaultOptions = {baseURL: ""}) {
|
||||
|
||||
let worker;
|
||||
if (isQX) {
|
||||
worker = $task.fetch({method, ...options});
|
||||
if (options.headers) {
|
||||
options.headers = JSON.stringify(options.headers);
|
||||
}
|
||||
worker = $task.fetch({method, url: options.url, headers: options.headers, body: options.body});
|
||||
} else if (isLoon || isSurge || isNode) {
|
||||
worker = new Promise((resolve, reject) => {
|
||||
const request = isNode ? require("request") : $httpClient;
|
||||
|
||||
Reference in New Issue
Block a user