mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
removed the buffering from update merger, shouldn't be needed in node 0.10
This commit is contained in:
parent
c0780f5a67
commit
71af89902d
2 changed files with 1 additions and 3 deletions
|
@ -94,8 +94,6 @@ module.exports =
|
|||
logger.log project_id:project_id, file_id:file_id, dumpPath:dumpPath, "tpds update write stream finished"
|
||||
callback null, dumpPath
|
||||
|
||||
if stream.emitBufferedData?
|
||||
stream.emitBufferedData()
|
||||
stream.resume()
|
||||
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ module.exports = class Router
|
|||
app.post '/project/:Project_id/doc/:doc_id', httpAuth, DocumentController.setDocument
|
||||
app.ignoreCsrf('post', '/project/:Project_id/doc/:doc_id')
|
||||
|
||||
app.post '/user/:user_id/update/*', httpAuth, Project.startBufferingRequest, TpdsController.mergeUpdate
|
||||
app.post '/user/:user_id/update/*', httpAuth, TpdsController.mergeUpdate
|
||||
app.del '/user/:user_id/update/*', httpAuth, TpdsController.deleteUpdate
|
||||
app.ignoreCsrf('post', '/user/:user_id/update/*')
|
||||
app.ignoreCsrf('delete', '/user/:user_id/update/*')
|
||||
|
|
Loading…
Reference in a new issue