Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Increase bodyparser request payload limit
Browse files Browse the repository at this point in the history
Ignore static file that gets created during integration tests when
running ava.
  • Loading branch information
ctdio committed Sep 25, 2017
1 parent fcc17cb commit 4ba3103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"babel": "inherit",
"files": [
"test/**/*.js",
"!test/util/**/*.js"
"!test/util/**/*.js",
"!test/integration/mocha/static/**/*.js"
],
"require": [
"babel-polyfill",
Expand Down
2 changes: 1 addition & 1 deletion src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Server extends EventEmitter {
super()

const app = this._app = express()
app.use(bodyParser.json())
app.use(bodyParser.json({ limit: '100mb' }))
app.use(markoExpress())

testPage = (testPage && marko.load(testPage)) || TestPage
Expand Down

0 comments on commit 4ba3103

Please sign in to comment.