mirror of
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-04-04 06:30:43 +00:00
Fix koa example
This commit is contained in:
parent
04831404f5
commit
3bf1f4c8d5
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user