mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
check that res has not already been sent before sending catch 500
This commit is contained in:
parent
2f22563d59
commit
e8b245e857
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ app.use (req, res, next) ->
|
|||
requestDomain.add req
|
||||
requestDomain.add res
|
||||
requestDomain.on "error", (err)->
|
||||
res.send 500
|
||||
if !res.finished
|
||||
res.send(500)
|
||||
logger = require('logger-sharelatex')
|
||||
req =
|
||||
body:req.body
|
||||
|
|
Loading…
Reference in a new issue