From 47de49e7e2b939c7e5fb001f31a21c9bd82d83af Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 23 Nov 2015 13:47:47 +0000 Subject: [PATCH] add missing protocol for redirect --- lib/no-www.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/no-www.js b/lib/no-www.js index d7d8fba..e63594b 100644 --- a/lib/no-www.js +++ b/lib/no-www.js @@ -19,6 +19,7 @@ module.exports.scrubTheDub = function (req, res, redirectives) { if (!newLocation) { return false; } + newLocation = 'http://' + newLocation; } else { newLocation = 'https://' + hostname.replace(/^www\./, ''); }