This commit is contained in:
jonathang4 2025-08-27 18:05:21 +08:00
parent b519eb907d
commit 68d46af58d
2 changed files with 2 additions and 5 deletions

View File

@ -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",

View File

@ -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;