mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
expose sinopia's version in Server header for debugging purposes
This commit is contained in:
parent
f05a4784fd
commit
77182a755d
@ -65,7 +65,7 @@ module.exports = function(config_hash) {
|
||||
app.use(error_reporting_middleware)
|
||||
app.use(Middleware.log_and_etagify)
|
||||
app.use(function(req, res, next) {
|
||||
res.setHeader('X-Powered-By', 'Sinopia')
|
||||
res.setHeader('X-Powered-By', config.user_agent)
|
||||
next()
|
||||
})
|
||||
app.use(Cats.middleware)
|
||||
|
Loading…
Reference in New Issue
Block a user