Skip to content

Node.js based forum software built for the modern web

fix: raise bodyParser limit to 1mb

Julian Lam32de3c008286
diff --git a/src/webserver.js b/src/webserver.js
index 7704db0028..2c6f1a35aa 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -274,6 +274,7 @@ function configureBodyParser(app) {
'application/ld+json',
'application/activity+json',
],
+ limit: '1mb',
...nconf.get('bodyParser:json'),
};
app.use(bodyParser.json(jsonOpts));