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:
parent
5f345a90df
commit
5ee2faf125
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue