Raise max body length

pull/1/head v1.1.0
Florian Hartwich 2017-07-09 11:49:21 +02:00
parent d5d4abd1a8
commit cb873f25fe
1 changed files with 2 additions and 1 deletions

View File

@ -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);