express-nudist
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -16,3 +16,3 @@ /* | ||
if (req.host.match(/^www\./i)) | ||
return res.redirect((req.secure ? 'https://' : 'http://') + domain + req.url); | ||
return res.redirect(req.protocol + '://' + domain + req.url); | ||
@@ -19,0 +19,0 @@ next(); |
{ | ||
"name": "express-nudist", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Express middleware to create a \"naked\" (www-less) domain.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,2 +26,6 @@ ## express-nudist | ||
### history | ||
##### march 10th, 2014 / 0.0.2 | ||
* removed `req.secure` test in favor of `req.protocol` | ||
##### march 9th, 2014 / 0.0.1 | ||
@@ -28,0 +32,0 @@ * initial commit |
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
2102
41