mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
check that res has not already been sent before sending catch 500
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user