This commit is contained in:
jonathang4 2025-08-27 17:41:32 +08:00
parent a73736cd26
commit 661875bd16

View File

@ -170,6 +170,8 @@ export async function request(
...(options.headers || {}), ...(options.headers || {}),
}, },
timeout: 15000, timeout: 15000,
maxContentLength: 50 * 1024 * 1024, // 设置50MB限制避免-1的问题
maxBodyLength: 50 * 1024 * 1024, // 设置50MB限制避免-1的问题
validateStatus: () => true, validateStatus: () => true,
..._.omit(options, "params", "headers"), ..._.omit(options, "params", "headers"),
}); });