replace deprecated send(code,body) calls

This commit is contained in:
Brian Gough
2015-05-12 11:40:29 +01:00
parent 889fa65d0c
commit 03c105c3d9
3 changed files with 13 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ if Settings.smokeTest
app.get "/health_check", (req, res)->
res.contentType(resCacher?.setContentType)
res.send resCacher?.code, resCacher?.body
res.status(resCacher?.code).send(resCacher?.body)
profiler = require "v8-profiler"
app.get "/profile", (req, res) ->
@@ -101,7 +101,7 @@ app.get "/heapdump", (req, res)->
app.use (error, req, res, next) ->
logger.error err: error, "server error"
res.send error?.statusCode || 500
res.sendStatus(error?.statusCode || 500)
app.listen port = (Settings.internal?.clsi?.port or 3013), host = (Settings.internal?.clsi?.host or "localhost"), (error) ->
logger.info "CLSI starting up, listening on #{host}:#{port}"