diff --git a/package.json b/package.json index ec39154..848bd92 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/controllers/core.ts b/src/api/controllers/core.ts index 59795e9..e0683ad 100644 --- a/src/api/controllers/core.ts +++ b/src/api/controllers/core.ts @@ -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;