use yield *next internally

This commit is contained in:
Jonathan Ong 2013-12-22 14:48:28 -08:00
parent 9fe483ca76
commit 0d9336622c

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;