{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/4962","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/4962/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/4962/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/4962/events","html_url":"https://github.com/aspnet/Mvc/issues/4962","id":163837365,"number":4962,"title":"Best way to log/read request body in a middleware ?","user":{"login":"IsaacSee","id":1514198,"avatar_url":"https://avatars.githubusercontent.com/u/1514198?v=3","gravatar_id":"","url":"https://api.github.com/users/IsaacSee","html_url":"https://github.com/IsaacSee","followers_url":"https://api.github.com/users/IsaacSee/followers","following_url":"https://api.github.com/users/IsaacSee/following{/other_user}","gists_url":"https://api.github.com/users/IsaacSee/gists{/gist_id}","starred_url":"https://api.github.com/users/IsaacSee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsaacSee/subscriptions","organizations_url":"https://api.github.com/users/IsaacSee/orgs","repos_url":"https://api.github.com/users/IsaacSee/repos","events_url":"https://api.github.com/users/IsaacSee/events{/privacy}","received_events_url":"https://api.github.com/users/IsaacSee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T12:19:40Z","updated_at":"2016-07-05T12:19:40Z","closed_at":null,"body":"Hello, \r\n\r\nFor logging concern we need to read and rewind the request body.\r\nWith pre-rc2 we used EnableRewind() to read then rewind the body stream.\r\n\r\nBut with 1.0.0, it seems that Kestrel uses a new StreamPooling, resulting in ObjectDisposed Exceptions  on the following request after calling EnableRewind().\r\n\r\nIs there a new way to read the body before MVC [FromBody] ?\r\nOr is this an issue ?\r\n\r\nThanks."}}
{"actor":{"display_login":"IsaacSee"}}