ssl-express-www
Advanced tools
Comparing version 1.0.3 to 1.0.4
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (req, res, next) { | ||
module.exports = function(req, res, next) { | ||
var local = req.url; | ||
@@ -12,3 +7,4 @@ var schema = (req.headers['x-forwarded-proto'] || '').toLowerCase(); | ||
var fullUrl = 'https://' + www + local; | ||
var removeSlash = function removeSlash(site) { | ||
var removeSlash = function(site) { | ||
return site.replace(/\/$/, ''); | ||
@@ -26,2 +22,2 @@ }; | ||
} | ||
}; | ||
}; |
{ | ||
"name": "ssl-express-www", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "It forces HTTPS when HTTP is required, remove www and remove slash-end from url.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2492
20