Merge pull request #761 from resin-io/disable-x-powered-by

Disable express' x-powered-by header
This commit is contained in:
Page- 2018-10-16 13:59:37 +01:00 committed by GitHub
commit ecc2a8f13e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) ->