fix #351, increase limit for body-parser

This commit is contained in:
Cassie Tarakajian 2017-05-10 15:07:40 -04:00
parent 341ea63437
commit 66833d22b6

View file

@ -55,8 +55,8 @@ app.options('*', corsMiddleware);
// Body parser, cookie parser, sessions, serve public assets // Body parser, cookie parser, sessions, serve public assets
app.use(Express.static(path.resolve(__dirname, '../static'))); app.use(Express.static(path.resolve(__dirname, '../static')));
app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
app.use(bodyParser.json()); app.use(bodyParser.json({ limit: '50mb' }));
app.use(cookieParser()); app.use(cookieParser());
app.use(session({ app.use(session({
resave: true, resave: true,