summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app.js b/app.js
index 59f39812..c5eae2c1 100644
--- a/app.js
+++ b/app.js
@@ -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