From 70f74746bd73aff96dec901780e61fbd073d8d8e Mon Sep 17 00:00:00 2001 From: Ondrej Synacek Date: Thu, 24 Oct 2019 21:55:05 +0200 Subject: [PATCH] fix deprecated body-parser usage --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c117a96..697c984 100644 --- a/lib/index.js +++ b/lib/index.js @@ -32,7 +32,7 @@ app.set('views', path.join(__dirname, 'views')) app.use(express.static(path.join(__dirname, 'public'))) app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))) -app.use(bodyParser()) +app.use(bodyParser.urlencoded({ extended: true })) if (certEndpoint) { app.get(`/${certEndpoint}`, (req, res) => {