Disable express' x-powered-by header

Change-type: patch
Signed-off-by: Pagan Gazzard <page@resin.io>
This commit is contained in:
Pagan Gazzard 2018-10-16 13:26:21 +02:00
parent d076d59499
commit 660d9ff6f3

View File

@ -29,6 +29,7 @@ module.exports = class SupervisorAPI
constructor: ({ @config, @eventTracker, @routers, @healthchecks }) ->
@server = null
@_api = express()
@_api.disable('x-powered-by')
@_api.get '/v1/healthy', (req, res) =>
Promise.map @healthchecks, (fn) ->