Merge pull request #49 from RobertHerhold/patch-1

Recommend using koa-sslify over koa-force-ssl
This commit is contained in:
AJ ONeal 2016-06-10 11:09:24 -06:00 committed by GitHub
commit e2feaa644e
1 changed files with 1 additions and 1 deletions

View File

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