{"action":"created","issue":{"url":"https://api.github.com/repos/dlau/koa-body/issues/90","repository_url":"https://api.github.com/repos/dlau/koa-body","labels_url":"https://api.github.com/repos/dlau/koa-body/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/dlau/koa-body/issues/90/comments","events_url":"https://api.github.com/repos/dlau/koa-body/issues/90/events","html_url":"https://github.com/dlau/koa-body/issues/90","id":327066712,"node_id":"MDU6SXNzdWUzMjcwNjY3MTI=","number":90,"title":"Example with koa-router doesn't work","user":{"login":"kaimiyang","id":25541839,"node_id":"MDQ6VXNlcjI1NTQxODM5","avatar_url":"https://avatars3.githubusercontent.com/u/25541839?v=4","gravatar_id":"","url":"https://api.github.com/users/kaimiyang","html_url":"https://github.com/kaimiyang","followers_url":"https://api.github.com/users/kaimiyang/followers","following_url":"https://api.github.com/users/kaimiyang/following{/other_user}","gists_url":"https://api.github.com/users/kaimiyang/gists{/gist_id}","starred_url":"https://api.github.com/users/kaimiyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaimiyang/subscriptions","organizations_url":"https://api.github.com/users/kaimiyang/orgs","repos_url":"https://api.github.com/users/kaimiyang/repos","events_url":"https://api.github.com/users/kaimiyang/events{/privacy}","received_events_url":"https://api.github.com/users/kaimiyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-28T15:50:37Z","updated_at":"2018-06-04T01:10:52Z","closed_at":null,"author_association":"NONE","body":"**\"koa-router\": \"^7.3.0\"**\r\n\r\nthis is version, app.use can work, but router not work!!!"},"comment":{"url":"https://api.github.com/repos/dlau/koa-body/issues/comments/394209319","html_url":"https://github.com/dlau/koa-body/issues/90#issuecomment-394209319","issue_url":"https://api.github.com/repos/dlau/koa-body/issues/90","id":394209319,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDIwOTMxOQ==","user":{"login":"mengdu","id":11366654,"node_id":"MDQ6VXNlcjExMzY2NjU0","avatar_url":"https://avatars0.githubusercontent.com/u/11366654?v=4","gravatar_id":"","url":"https://api.github.com/users/mengdu","html_url":"https://github.com/mengdu","followers_url":"https://api.github.com/users/mengdu/followers","following_url":"https://api.github.com/users/mengdu/following{/other_user}","gists_url":"https://api.github.com/users/mengdu/gists{/gist_id}","starred_url":"https://api.github.com/users/mengdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengdu/subscriptions","organizations_url":"https://api.github.com/users/mengdu/orgs","repos_url":"https://api.github.com/users/mengdu/repos","events_url":"https://api.github.com/users/mengdu/events{/privacy}","received_events_url":"https://api.github.com/users/mengdu/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T01:10:52Z","updated_at":"2018-06-04T01:10:52Z","author_association":"NONE","body":"@MarkHerhold \r\n\r\nMy problem is that when the `Content-type`  is `application/x-www-form-urlencoded` it does not respond to the.\r\n\r\ncode:\r\n\r\n```js\r\napp.use(KoaBodyParser())\r\n\r\nrouter.all('/api/file', KoaBody(), async ctx => {\r\n  ctx.body = {\r\n    api: true,\r\n    type: ctx.method,\r\n    query: ctx.query,\r\n    body: ctx.request.body,\r\n    files: ctx.request.body.files\r\n  }\r\n})\r\n```\r\n\r\nWhen the code is `app.use(KoaBodyParser())`  othor router it dose not work !\r\n\r\n"}}
{"actor":{"display_login":"mengdu"}}