Use koa-sslify over koa-force-ssl
This commit is contained in:
parent
b431bf084a
commit
ca5305609c
|
@ -68,7 +68,7 @@ var http = require('http');
|
|||
var https = require('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