use yield *next internally

master
Jonathan Ong 2013-12-22 14:48:28 -08:00
parent 9fe483ca76
commit 0d9336622c
1 changed files with 1 additions and 1 deletions

View File

@ -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;