From 3a71be3c6b4606ca2e3a2a658e9bba400ee6c1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Dahlgren?= Date: Sat, 1 Apr 2017 13:18:11 +0200 Subject: [PATCH] Set bodyparser urlencoded to use simplified parsing --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 759ea95..9931a25 100644 --- a/app.js +++ b/app.js @@ -25,7 +25,7 @@ if (config.auth && config.auth.username && config.auth.password) { } app.use(bodyParser.json()); -app.use(bodyParser.urlencoded()); +app.use(bodyParser.urlencoded({ extended: false })); app.use(morgan('dev')); app.use(serveStatic(path.join(__dirname, 'public')));