Skip to content

Commit

Permalink
Merge pull request #39 from MrClemRkz/master
Browse files Browse the repository at this point in the history
increased body-parser size
  • Loading branch information
MrClemRkz authored Jul 9, 2020
2 parents 7d89b6e + ad9aa81 commit be41f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ app.all('*', function(req, res, next) {
next();
});

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json({ limit: '50mb', extended: true }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
app.use(upload.array());
app.use(express.static('static'))
app.use(speedLimiter);
Expand Down

0 comments on commit be41f89

Please sign in to comment.