mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 04:25:17 -05:00
Merge remote-tracking branch 'origin/bg-accept-larger-document-size-on-api-requests'
GitOrigin-RevId: b06511daa7000878646f5cb8132d6077304f5f8c
This commit is contained in:
parent
f090eb6d06
commit
b9e88c7998
1 changed files with 5 additions and 2 deletions
|
@ -63,8 +63,11 @@ Modules.loadViewIncludes app
|
||||||
|
|
||||||
|
|
||||||
app.use bodyParser.urlencoded({ extended: true, limit: "2mb"})
|
app.use bodyParser.urlencoded({ extended: true, limit: "2mb"})
|
||||||
# Make sure we can process the max doc length plus some overhead for JSON encoding
|
# Make sure we can process twice the max doc length, to allow for
|
||||||
app.use bodyParser.json({limit: Settings.max_doc_length + 64 * 1024}) # 64kb overhead
|
# - 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 methodOverride()
|
||||||
app.use bearerToken()
|
app.use bearerToken()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue