修复QX无法上传下载gist的bug

This commit is contained in:
Peng-YM 2020-12-09 14:14:25 +08:00
parent 6758f5b6e0
commit 7eed0192bc
2 changed files with 2 additions and 5 deletions

View File

@ -3123,9 +3123,6 @@ function HTTP(defaultOptions = {baseURL: ""}) {
let worker;
if (isQX) {
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) => {

File diff suppressed because one or more lines are too long