fix #351, increase limit for body-parser
This commit is contained in:
parent
341ea63437
commit
66833d22b6
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ app.options('*', corsMiddleware);
|
|||
// Body parser, cookie parser, sessions, serve public assets
|
||||
|
||||
app.use(Express.static(path.resolve(__dirname, '../static')));
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
app.use(cookieParser());
|
||||
app.use(session({
|
||||
resave: true,
|
||||
|
|
Loading…
Reference in a new issue