diff options
author | Wu Cheng-Han | 2016-07-30 11:13:13 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-07-30 11:13:13 +0800 |
commit | b5d3570b1ab477792a839dadb4dbb5a5057297e6 (patch) | |
tree | 71c8d30f095f20b1a69ae5974398298a11f04c57 | |
parent | 045c08447fd26a679da35e20464757085d753333 (diff) |
Update to raise the body-parser limit to fix "Error: request entity too large" issue
-rw-r--r-- | app.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -67,11 +67,14 @@ realtime.io = io; app.use(methodOverride('_method')); // create application/json parser -var jsonParser = bodyParser.json(); +var jsonParser = bodyParser.json({ + limit: 1024 * 1024 * 10 // 10 mb +}); // create application/x-www-form-urlencoded parser var urlencodedParser = bodyParser.urlencoded({ - extended: false + extended: false, + limit: 1024 * 1024 * 10 // 10 mb }); //session store |