Comparing version 0.0.1-6 to 0.0.1-7
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.1-6", | ||
"version": "0.0.1-7", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -34,3 +34,3 @@ #!/usr/bin/env node | ||
const forwardedProto = req.get('X-Forwarded-Proto'); | ||
if (forwardedProto && forwardedProto.indexOf("https") >= 0){ | ||
if (forwardedProto && forwardedProto.indexOf("https") === -1){ | ||
res.redirect('https://' + req.hostname + req.url); | ||
@@ -37,0 +37,0 @@ } else { |
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
328555