0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

fix: Missing code from pr #222 lost in rebase

This commit is contained in:
Juan Picado @jotadeveloper 2017-07-08 18:34:26 +02:00
parent 5f345a90df
commit 5ee2faf125
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -38,8 +38,9 @@ module.exports = function(config, auth, storage) {
});
router.get('/', function(req, res, next) {
const proto = req.get('X-Forwarded-Proto') || req.protocol;
const base = Utils.combineBaseUrl(proto, req.get('host'), config.url_prefix);
res.setHeader('Content-Type', 'text/html');
const base = Utils.combineBaseUrl(req.protocol, req.get('host'), config.url_prefix);
res.send(template.replace(/ToReplaceByVerdaccio/g, base));
});