From 3bf1f4c8d59cb654850e08a808f93ffab701aee5 Mon Sep 17 00:00:00 2001 From: Robert Herhold Date: Sun, 22 May 2016 21:35:27 -0400 Subject: [PATCH] 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';