From 0e2414651157bd54a4d8fc65bce29cbf20c1f820 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 15 Aug 2022 10:02:32 -0600 Subject: [PATCH] API FIX --- web/webconsole.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/webconsole.js b/web/webconsole.js index 978dcc1..dd14866 100644 --- a/web/webconsole.js +++ b/web/webconsole.js @@ -15,9 +15,7 @@ let config = JSON.parse(fs.readFileSync((process.env.PICLUSTER_CONFIG ? process. process.env.NODE_TLS_REJECT_UNAUTHORIZED = config.ssl_self_signed ? '0' : '1'; const app = express(); -app.use(express.urlencoded({ - limit: '20mb' -})); +app.use(express.urlencoded({ extended: true })); app.use(express.json({ limit: '20mb' })); @@ -1372,4 +1370,4 @@ if (config.ssl && config.ssl_cert && config.ssl_key) { webconsole.listen(web_port, () => { console.log('Listening on port %d', web_port); }); -} \ No newline at end of file +}