111
This commit is contained in:
parent
b519eb907d
commit
68d46af58d
@ -20,7 +20,7 @@
|
|||||||
"author": "Vinlic",
|
"author": "Vinlic",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "1.4.0",
|
"axios": "^1.6.7",
|
||||||
"colors": "^1.4.0",
|
"colors": "^1.4.0",
|
||||||
"crc-32": "^1.2.2",
|
"crc-32": "^1.2.2",
|
||||||
"cron": "^3.1.6",
|
"cron": "^3.1.6",
|
||||||
|
|||||||
@ -171,10 +171,7 @@ export async function request(
|
|||||||
},
|
},
|
||||||
timeout: 15000,
|
timeout: 15000,
|
||||||
validateStatus: () => true,
|
validateStatus: () => true,
|
||||||
..._.omit(options, "params", "headers", "maxContentLength", "maxBodyLength"),
|
..._.omit(options, "params", "headers"),
|
||||||
// 强制设置为Infinity,解决-1错误,放在最后确保不被覆盖
|
|
||||||
maxContentLength: Infinity,
|
|
||||||
maxBodyLength: Infinity,
|
|
||||||
});
|
});
|
||||||
// 流式响应直接返回response
|
// 流式响应直接返回response
|
||||||
if (options.responseType == "stream") return response;
|
if (options.responseType == "stream") return response;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user