From 7bb1482a8fb9a6b11ff0c5a5048058addd27ed0d Mon Sep 17 00:00:00 2001 From: Jayson Jacobs Date: Tue, 24 Sep 2024 21:03:59 -0600 Subject: [PATCH] doh, i was resetting the limit --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8837c8c..b738172 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,6 @@ const targetUrls = (process.env.TARGET_URLS || 'http://example.com').split(','). const payloadLimit = process.env.PAYLOAD_LIMIT || '1mb' app.use(bodyParser.json({ limit: payloadLimit })) app.use(bodyParser.urlencoded({ extended: false, limit: payloadLimit })) -app.use(bodyParser.json()) log('info', `Payload limit is: ${payloadLimit}`) // Express routes