redirect-ssl
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "redirect-ssl", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Connect middleware to enforce https", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,2 +31,7 @@ # redirect-ssl | ||
### redirect | ||
- Default: `process.env.NODE_ENV === 'production'` | ||
Only enabled in production environment. Force redirecting locally by setting this option to `true`. | ||
### redirectPort | ||
@@ -52,7 +57,2 @@ - Default: `443` | ||
### redirect | ||
- Default: Only when `process.env.NODE_ENV === 'production'` | ||
Only enabled in production environment. Force redirecting locally by setting it to `true` | ||
Status code when redirecting. The reason of choosing `307` for default is: | ||
@@ -59,0 +59,0 @@ - It prevents changing method from `POST` TO `GET` by user agents. (If you don't care, use `302` *Found*) |