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