mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Use max_doc_length rather than max_doc_size to be consistent with other services
This commit is contained in:
@@ -20,7 +20,7 @@ app.get '/project/:project_id/doc', HttpController.getAllDocs
|
||||
app.get '/project/:project_id/doc/:doc_id', HttpController.getDoc
|
||||
app.get '/project/:project_id/doc/:doc_id/raw', HttpController.getRawDoc
|
||||
# Add 16kb overhead for the JSON encoding
|
||||
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(limit: Settings.max_doc_size + 16 * 1024), HttpController.updateDoc
|
||||
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(limit: Settings.max_doc_length + 16 * 1024), HttpController.updateDoc
|
||||
app.del '/project/:project_id/doc/:doc_id', HttpController.deleteDoc
|
||||
|
||||
app.post '/project/:project_id/archive', HttpController.archiveAllDocs
|
||||
|
||||
@@ -18,4 +18,4 @@ module.exports =
|
||||
# secret: ""
|
||||
# bucket: "something"
|
||||
|
||||
max_doc_size: 2 * 1024 * 1024 # 2mb
|
||||
max_doc_length: 2 * 1024 * 1024 # 2mb
|
||||
|
||||
Reference in New Issue
Block a user