Skip to content

Commit

Permalink
fix(upload): set 10mb payload limit as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Feb 17, 2016
1 parent 371fa74 commit 6b53327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
app.set 'json spaces', 2
app.set 'x-powered-by', false
app.use bodyParser.json()
app.use bodyParser.json
limit: process.env.UPLOAD_LIMIT or '10mb'
if app.get('env').toLowerCase() isnt 'test'
app.use compression()
Expand Down

0 comments on commit 6b53327

Please sign in to comment.