Recommend using koa-sslify over koa-force-ssl

The README for koa-force-ssl says the middleware is deprecated and that koa-sslify should be used instead.
This commit is contained in:
Robert Herhold 2016-05-22 21:26:53 -04:00
parent 4b07df9676
commit 04831404f5
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ var http = require('http');
var https = require('spdy'); // Note: some have reported trouble with `http2` and success with `spdy`
var koa = require('koa');
var app = koa();
var redirectHttps = koa().use(require('koa-force-ssl').callback();
var redirectHttps = koa().use(require('koa-sslify').callback();
app.use(function *() {
this.body = 'Hello World';