Fix koa example

This commit is contained in:
Robert Herhold 2016-05-22 21:35:27 -04:00
parent 04831404f5
commit 3bf1f4c8d5
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,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-sslify').callback(); var redirectHttps = koa().use(require('koa-sslify')()).callback();
app.use(function *() { app.use(function *() {
this.body = 'Hello World'; this.body = 'Hello World';