Use max_doc_length rather than max_doc_size to be consistent with other services

This commit is contained in:
James Allen 2015-11-09 15:24:21 +00:00
parent 27d3ebc1fd
commit 7185657f06
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -18,4 +18,4 @@ module.exports =
# secret: ""
# bucket: "something"
max_doc_size: 2 * 1024 * 1024 # 2mb
max_doc_length: 2 * 1024 * 1024 # 2mb