From f572a5900fd5b86c0ff4cc4f0fc50a24ebba22b3 Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 25 Dec 2016 17:52:00 +0800 Subject: [PATCH] Change body size limit to 50M --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index f80dfa2..4f2217e 100644 --- a/app.js +++ b/app.js @@ -50,9 +50,9 @@ global.syzoj = { let bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true, - limit: '10mb' + limit: '50mb' })); - app.use(bodyParser.json()); + app.use(bodyParser.json({ limit: '50mb' })); // Use cookie parser app.use(require('cookie-parser')());