From cb873f25fedda006f41a49f6460a3ed0fc0e2b17 Mon Sep 17 00:00:00 2001 From: Florian Hartwich Date: Sun, 9 Jul 2017 11:49:21 +0200 Subject: [PATCH] Raise max body length --- api/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/server.js b/api/server.js index f02fbeb..70367a4 100644 --- a/api/server.js +++ b/api/server.js @@ -51,7 +51,8 @@ app.use(cors(corsOptions)); app.use(favicon(path.join(__dirname + '/..', 'public', 'favicon.ico'))); app.use(express.static(path.join(__dirname + '/..', 'public'))); -app.use(bodyParser.json()); +app.use(bodyParser.json({limit: '10mb'})); +app.use(bodyParser.urlencoded({limit: '10mb', extended: true})); // API request checks for API-version and JSON etc. app.use(restAPIchecks);