add missing protocol for redirect

This commit is contained in:
AJ ONeal 2015-11-23 13:47:47 +00:00
parent d3ef9fb032
commit 47de49e7e2
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ module.exports.scrubTheDub = function (req, res, redirectives) {
if (!newLocation) {
return false;
}
newLocation = 'http://' + newLocation;
} else {
newLocation = 'https://' + hostname.replace(/^www\./, '');
}