{"action":"closed","issue":{"url":"https://api.github.com/repos/mitsuhiko/flask/issues/1571","labels_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1571/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1571/comments","events_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1571/events","html_url":"https://github.com/mitsuhiko/flask/issues/1571","id":107730841,"number":1571,"title":"@app.after_request should be able to process a non-response into a response","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-22T14:50:36Z","updated_at":"2015-11-03T15:18:36Z","closed_at":"2015-11-03T15:18:36Z","body":"That is, the route should be able to return anything and after_request should be able to take that and convert it into an actual response object.\r\n\r\nUse case: all of our routes return dicts, which we serialize to JSON through a decorator. We have no non-JSON routes. I'd like to remove our decorator and make this change application-wide instead."}}