0
Fork 0
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:
Alex Kocharin 2013-12-10 14:12:34 +04:00
parent f05a4784fd
commit 77182a755d

View file

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