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