express-to-https
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -5,3 +5,3 @@ 'use strict'; | ||
if (req.headers['x-forwarded-proto'] != 'https') res.redirect(301, 'https://' + req.headers.host + req.originalUrl);else next(); | ||
if (req.headers['x-forwarded-proto'] != 'https') res.redirect('https://' + req.headers.host + req.originalUrl);else next(); | ||
}; |
{ | ||
"name": "express-to-https", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Express middleware to redirect http requests to https using the x-forwarded-proto header.", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
1848