Merge pull request #799 from sharelatex/bg-increase-bodyparser-json-limit

increase bodyparser limit to 64kb
This commit is contained in:
Brian Gough 2018-08-06 11:25:22 +01:00 committed by GitHub
commit 2626382024

View file

@ -68,7 +68,7 @@ Modules.loadViewIncludes app
app.use bodyParser.urlencoded({ extended: true, limit: "2mb"})
# Make sure we can process the max doc length plus some overhead for JSON encoding
app.use bodyParser.json({limit: Settings.max_doc_length + 16 * 1024}) # 16kb overhead
app.use bodyParser.json({limit: Settings.max_doc_length + 64 * 1024}) # 64kb overhead
app.use multer(dest: Settings.path.uploadFolder)
app.use methodOverride()