From 04831404f546931416529a665143c49c354d1b07 Mon Sep 17 00:00:00 2001 From: Robert Herhold Date: Sun, 22 May 2016 21:26:53 -0400 Subject: [PATCH 1/2] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 582117a..c732fee 100644 --- a/README.md +++ b/README.md @@ -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'; From 3bf1f4c8d59cb654850e08a808f93ffab701aee5 Mon Sep 17 00:00:00 2001 From: Robert Herhold Date: Sun, 22 May 2016 21:35:27 -0400 Subject: [PATCH 2/2] Fix koa example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c732fee..24ac57e 100644 --- a/README.md +++ b/README.md @@ -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-sslify').callback(); +var redirectHttps = koa().use(require('koa-sslify')()).callback(); app.use(function *() { this.body = 'Hello World';