diff --git a/lib/application.js b/lib/application.js index babf4c6..89e575c 100644 --- a/lib/application.js +++ b/lib/application.js @@ -181,7 +181,7 @@ function *respond(next){ this.status = 200; if (this.app.poweredBy) this.set('X-Powered-By', 'koa'); - yield next; + yield *next; var res = this.res; if (res.headersSent || !res.socket.writable) return;