Skip to content

Commit

Permalink
Merge pull request #31 from Ventajou/master
Browse files Browse the repository at this point in the history
Match body size limit to AWS
  • Loading branch information
swyxio authored Oct 11, 2018
2 parents eee04c4 + 4f78d44 commit 4526939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ exports.listen = function(port) {
var config = conf.load();
var app = express();
var dir = config.build.functions || config.build.Functions;
app.use(bodyParser.raw());
app.use(bodyParser.text({type: "*/*"}));
app.use(bodyParser.raw({limit: "6mb"}));
app.use(bodyParser.text({limit: "6mb", type: "*/*"}));
app.use(expressLogging(console, {
blacklist: ['/favicon.ico'],
}));
Expand Down

0 comments on commit 4526939

Please sign in to comment.