Skip to content

Commit

Permalink
fix: extending number of parameters body-parser accepts
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Mar 31, 2017
1 parent 0cd3954 commit a1fdc41
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/extend/process.js
Expand Up @@ -39,7 +39,7 @@ var abeProcess = function(name, args = [], callback) {
}
}catch(err) {
Manager.instance.removeProcess(name)
console.log('process fork failed')
console.log(`Manager.instance.addProcess : process fork failed on ${__dirname}/../../cli/process/${name}.js`)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/app.js
Expand Up @@ -94,7 +94,7 @@ app.use(flash())
app.use(cookieParser())
app.use(passport.initialize())
app.use(passport.session())
app.use(bodyParser.urlencoded({limit: '1gb', extended: true, parameterLimit: 10000 }))
app.use(bodyParser.urlencoded({limit: '1gb', extended: true, parameterLimit: 50000}))
app.use(csrf({cookie: {secure: config.cookie.secure}}))
app.use(function(req, res, next) {
if (req.url.indexOf('/abe/') > -1 ) {
Expand Down
1 change: 0 additions & 1 deletion src/server/routes/rest/post.js
Expand Up @@ -21,7 +21,6 @@ var route = function(req, res, next) {

var filePath = req.originalUrl.replace('/abe/rest/post', '')

console.log(filePath)
if(filePath !== '' && filePath !== '/' && filePath != null) {
var filePathTest = cmsData.revision.getDocumentRevision(filePath)
if(typeof filePathTest !== 'undefined' && filePathTest !== null) {
Expand Down

0 comments on commit a1fdc41

Please sign in to comment.