Merge pull request #49 from RobertHerhold/patch-1
Recommend using koa-sslify over koa-force-ssl
This commit is contained in:
commit
e2feaa644e
|
@ -149,7 +149,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';
|
||||
|
|
Loading…
Reference in New Issue