From 0d9336622c6e9d01abec01bc4a17ab9736d46252 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Sun, 22 Dec 2013 14:48:28 -0800 Subject: [PATCH] use yield *next internally --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;