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:
commit
088d5131cf
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue