express-enforces-ssl
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -9,9 +9,3 @@ "use strict"; | ||
// Second, if the request headers can be trusted (e.g. because they are send | ||
// by a proxy), check if x-forward-proto is set to https | ||
if(!isHttps) { | ||
isHttps = (req.protocol === "https"); | ||
} | ||
if(isHttps) { | ||
next(); | ||
@@ -18,0 +12,0 @@ } else { |
{ | ||
"name": "express-enforces-ssl", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Enforces SSL for node.js express projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2310
18