From 1d60f55cb8217d1f18589e0f9df8bb9e79049cd3 Mon Sep 17 00:00:00 2001 From: ImBenji Date: Wed, 31 Dec 2025 12:39:25 +0000 Subject: [PATCH] Increase JSON and URL-encoded body size limits to 1GB --- api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.js b/api.js index 7a00f9c..9ce92cf 100644 --- a/api.js +++ b/api.js @@ -13,7 +13,8 @@ if (!fs.existsSync(CACHE_DIR)) { fs.mkdirSync(CACHE_DIR); } -app.use(express.json()); +app.use(express.json({ limit: '1gb' })); +app.use(express.urlencoded({ limit: '1gb', extended: true })); function normalizeConfig(config) { // Remove null, undefined, and empty string values