|
|
@@ -63,8 +63,11 @@ 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 + 64 * 1024}) # 64kb overhead
|
|
|
+# Make sure we can process twice the max doc length, to allow for
|
|
|
+# - the doc content
|
|
|
+# - text ranges spanning the whole doc
|
|
|
+# Also allow some overhead for JSON encoding
|
|
|
+app.use bodyParser.json({limit: 2 * Settings.max_doc_length + 64 * 1024}) # 64kb overhead
|
|
|
app.use methodOverride()
|
|
|
app.use bearerToken()
|
|
|
|