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

Merge pull request #6027 from reinoudk/bp-limit

Make bodyparser limit configurable to allow for posts larger than 100kB
This commit is contained in:
Sebastian Gierlinger 2015-11-17 08:25:56 +01:00
commit 088d5131cf

View file

@ -123,8 +123,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());