ssl-redirect
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -15,3 +15,2 @@ | ||
var STS = 'max-age=' + options.maxAge || '16070400' | ||
var CC = STS | ||
if (options.includeSubDomains !== false) STS += '; includeSubDomains' | ||
@@ -23,3 +22,2 @@ | ||
res.setHeader('Cache-Control', CC) // not sure if this does anything | ||
res.setHeader('Strict-Transport-Security', STS) | ||
@@ -26,0 +24,0 @@ |
{ | ||
"name": "ssl-redirect", | ||
"description": "redirect users to the SSL version of your app", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"author": { | ||
@@ -12,3 +12,3 @@ "name": "Jonathan Ong", | ||
"license": "MIT", | ||
"repository": "expressjs/ssl-redirect", | ||
"repository": "pillarjs/ssl-redirect", | ||
"dependencies": { | ||
@@ -19,2 +19,3 @@ "debug": "*", | ||
"devDependencies": { | ||
"istanbul": "0", | ||
"mocha": "1", | ||
@@ -24,4 +25,11 @@ "supertest": "0" | ||
"scripts": { | ||
"test": "mocha --reporter spec" | ||
} | ||
"test": "mocha --reporter spec", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot", | ||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot" | ||
}, | ||
"keywords": [ | ||
"ssl", | ||
"https", | ||
"redirect" | ||
] | ||
} |
# SSL Redirect | ||
[![NPM version][npm-image]][npm-url] | ||
[![Build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![Dependency Status][david-image]][david-url] | ||
[![License][license-image]][license-url] | ||
[![Downloads][downloads-image]][downloads-url] | ||
Tiny server that redirects HTTP requests to SSL. | ||
@@ -22,1 +29,18 @@ These is currently really rough and you probably shouldn't use it. | ||
- `includeSubDomains: true` - for `Strict-Transport-Security` | ||
[npm-image]: https://img.shields.io/npm/v/ssl-redirect.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/ssl-redirect | ||
[github-tag]: http://img.shields.io/github/tag/pillarjs/ssl-redirect.svg?style=flat-square | ||
[github-url]: https://github.com/pillarjs/ssl-redirect/tags | ||
[travis-image]: https://img.shields.io/travis/pillarjs/ssl-redirect.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/pillarjs/ssl-redirect | ||
[coveralls-image]: https://img.shields.io/coveralls/pillarjs/ssl-redirect.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/pillarjs/ssl-redirect?branch=master | ||
[david-image]: http://img.shields.io/david/pillarjs/ssl-redirect.svg?style=flat-square | ||
[david-url]: https://david-dm.org/pillarjs/ssl-redirect | ||
[license-image]: http://img.shields.io/npm/l/ssl-redirect.svg?style=flat-square | ||
[license-url]: LICENSE | ||
[downloads-image]: http://img.shields.io/npm/dm/ssl-redirect.svg?style=flat-square | ||
[downloads-url]: https://npmjs.org/package/ssl-redirect | ||
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square | ||
[gittip-url]: https://www.gittip.com/jonathanong/ |
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
7697
7
106
46
3