Missed a baseUrl instance.

This commit is contained in:
Kevin Gisi
2015-07-28 19:40:26 -04:00
parent 3be5c2cb96
commit 27b2d932ce
+3
View File
@@ -106,9 +106,12 @@ function isProxied(req) {
}
module.exports.forceSSL = function(req, res, next){
var baseUrl = nconf.get("BASE_URL");
if(isHTTP(req) && !isProxied(req)) {
return res.redirect(baseUrl + req.url);
}
next();
}