use yield *next internally
This commit is contained in:
parent
9fe483ca76
commit
0d9336622c
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ function *respond(next){
|
||||||
this.status = 200;
|
this.status = 200;
|
||||||
if (this.app.poweredBy) this.set('X-Powered-By', 'koa');
|
if (this.app.poweredBy) this.set('X-Powered-By', 'koa');
|
||||||
|
|
||||||
yield next;
|
yield *next;
|
||||||
|
|
||||||
var res = this.res;
|
var res = this.res;
|
||||||
if (res.headersSent || !res.socket.writable) return;
|
if (res.headersSent || !res.socket.writable) return;
|
||||||
|
|
Loading…
Reference in a new issue