mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Fix order of .status().send()
This commit is contained in:
@@ -143,7 +143,7 @@ app.get('/status', function(req, res) {
|
||||
res.send('filestore sharelatex up')
|
||||
} else {
|
||||
logger.log('app is not ok - shutting down')
|
||||
res.send('server is being shut down').status(500)
|
||||
res.status(500).send('server is being shut down')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class ExceptionHandler {
|
||||
// request a shutdown to prevent memory leaks
|
||||
this.beginShutdown()
|
||||
if (!res.headerSent) {
|
||||
res.send('uncaught exception').status(500)
|
||||
res.status(500).send('uncaught exception')
|
||||
}
|
||||
req = {
|
||||
body: req.body,
|
||||
|
||||
Reference in New Issue
Block a user