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

View File

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