mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
expose sinopia's version in Server header for debugging purposes
This commit is contained in:
parent
f05a4784fd
commit
77182a755d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module.exports = function(config_hash) {
|
||||||
app.use(error_reporting_middleware)
|
app.use(error_reporting_middleware)
|
||||||
app.use(Middleware.log_and_etagify)
|
app.use(Middleware.log_and_etagify)
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.setHeader('X-Powered-By', 'Sinopia')
|
res.setHeader('X-Powered-By', config.user_agent)
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
app.use(Cats.middleware)
|
app.use(Cats.middleware)
|
||||||
|
|
Loading…
Add table
Reference in a new issue