{"action":"created","issue":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/118","labels_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/118/comments","events_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/118/events","html_url":"https://github.com/alexmingoia/koa-router/issues/118","id":66814257,"number":118,"title":"router.use method may have a bug?","user":{"login":"luicfer","id":8154651,"avatar_url":"https://avatars.githubusercontent.com/u/8154651?v=3","gravatar_id":"","url":"https://api.github.com/users/luicfer","html_url":"https://github.com/luicfer","followers_url":"https://api.github.com/users/luicfer/followers","following_url":"https://api.github.com/users/luicfer/following{/other_user}","gists_url":"https://api.github.com/users/luicfer/gists{/gist_id}","starred_url":"https://api.github.com/users/luicfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luicfer/subscriptions","organizations_url":"https://api.github.com/users/luicfer/orgs","repos_url":"https://api.github.com/users/luicfer/repos","events_url":"https://api.github.com/users/luicfer/events{/privacy}","received_events_url":"https://api.github.com/users/luicfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-07T08:00:46Z","updated_at":"2015-04-08T01:39:37Z","closed_at":null,"body":"```js\r\nvar router = require('koa-router')();\r\nrouter.prefix('/api/apps');\r\nrouter.use(function *(next) {\r\n    if (!this.session.id) {\r\n        this.status = 401;\r\n    }else{\r\n        yield next;\r\n    }\r\n});\r\n\r\nrouter.get('/',function *() {\r\n    this.body = 'apps';\r\n});\r\n\r\nmodule.exports = router;\r\n```\r\n\r\nyield next is not working.  whether with it or not . it will execute ``router.get``."},"comment":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/comments/90776380","html_url":"https://github.com/alexmingoia/koa-router/issues/118#issuecomment-90776380","issue_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/118","id":90776380,"user":{"login":"luicfer","id":8154651,"avatar_url":"https://avatars.githubusercontent.com/u/8154651?v=3","gravatar_id":"","url":"https://api.github.com/users/luicfer","html_url":"https://github.com/luicfer","followers_url":"https://api.github.com/users/luicfer/followers","following_url":"https://api.github.com/users/luicfer/following{/other_user}","gists_url":"https://api.github.com/users/luicfer/gists{/gist_id}","starred_url":"https://api.github.com/users/luicfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luicfer/subscriptions","organizations_url":"https://api.github.com/users/luicfer/orgs","repos_url":"https://api.github.com/users/luicfer/repos","events_url":"https://api.github.com/users/luicfer/events{/privacy}","received_events_url":"https://api.github.com/users/luicfer/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T01:39:37Z","updated_at":"2015-04-08T01:39:37Z","body":"in version ``4.3.2`` it seems you have fix this problem"}}