Skip to content

Commit

Permalink
Merge pull request #88 from snyk/fix/body-limit-5mb
Browse files Browse the repository at this point in the history
fix: allow requests with over 100kb in body length
  • Loading branch information
adrukh authored Nov 8, 2017
2 parents e04af4c + 8f167ff commit 6a12fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main({ httpsKey = null, httpsCert = null, port = 7341 } = {}, altPort =

app.disable('x-powered-by');
app.use(markEmptyRequestBody);
app.use(bodyParser.raw({ type: '*/*' }));
app.use(bodyParser.raw({ type: '*/*', limit: '5mb' }));
app.use(stripEmptyRequestBody);

if (altPort) {
Expand Down

0 comments on commit 6a12fe2

Please sign in to comment.