Skip to content

Commit 4526939

Browse files
authored
Merge pull request netlify#31 from Ventajou/master
Match body size limit to AWS
2 parents eee04c4 + 4f78d44 commit 4526939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/serve.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ exports.listen = function(port) {
7979
var config = conf.load();
8080
var app = express();
8181
var dir = config.build.functions || config.build.Functions;
82-
app.use(bodyParser.raw());
83-
app.use(bodyParser.text({type: "*/*"}));
82+
app.use(bodyParser.raw({limit: "6mb"}));
83+
app.use(bodyParser.text({limit: "6mb", type: "*/*"}));
8484
app.use(expressLogging(console, {
8585
blacklist: ['/favicon.ico'],
8686
}));

0 commit comments

Comments
 (0)