From dac6a8f8ecbc8e901053435dbd1e3676732ee890 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Mon, 6 May 2024 18:21:18 -0300 Subject: [PATCH] new(whatsapp.gblib): New WhatsApp provider: Meta. --- src/app.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app.ts b/src/app.ts index 52b6b7e4..f75b2f1b 100644 --- a/src/app.ts +++ b/src/app.ts @@ -105,6 +105,13 @@ export class GBServer { server.use(bodyParser.json()); server.use(bodyParser.json({ limit: '1mb' })); server.use(bodyParser.urlencoded({ limit: '1mb', extended: true })); + server.use(function(req, res, next) { + for (var key in req.query) + { + req.query[key.toLowerCase()] = req.query[key]; + } + next(); + }); process.on('SIGTERM', () => { GBLogEx.info(0, 'SIGTERM signal received.');