0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Set bodyparser limit to 1mb to allow for posts larger than 100kB

closes #5998
- added bodyparser limit of 1mb in core/server/middleware/index.js
This commit is contained in:
Reinoud Kruithof 2015-10-30 13:40:07 +01:00 committed by Reinoud Kruithof
parent 6474bba64e
commit e5e699ad8f

View file

@ -122,8 +122,8 @@ setupMiddleware = function setupMiddleware(blogApp, adminApp) {
blogApp.use(uncapitalise);
// Body parsing
blogApp.use(bodyParser.json());
blogApp.use(bodyParser.urlencoded({extended: true}));
blogApp.use(bodyParser.json({limit: '1mb'}));
blogApp.use(bodyParser.urlencoded({extended: true, limit: '1mb'}));
blogApp.use(passport.initialize());