mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-27 07:24:02 +00: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 req
|
||||||
requestDomain.add res
|
requestDomain.add res
|
||||||
requestDomain.on "error", (err)->
|
requestDomain.on "error", (err)->
|
||||||
res.send 500
|
if !res.finished
|
||||||
|
res.send(500)
|
||||||
logger = require('logger-sharelatex')
|
logger = require('logger-sharelatex')
|
||||||
req =
|
req =
|
||||||
body:req.body
|
body:req.body
|
||||||
|
|
Loading…
Add table
Reference in a new issue