{"action":"created","issue":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/2987","repository_url":"https://api.github.com/repos/Pylons/pyramid","labels_url":"https://api.github.com/repos/Pylons/pyramid/issues/2987/labels{/name}","comments_url":"https://api.github.com/repos/Pylons/pyramid/issues/2987/comments","events_url":"https://api.github.com/repos/Pylons/pyramid/issues/2987/events","html_url":"https://github.com/Pylons/pyramid/issues/2987","id":218213676,"number":2987,"title":"HTTPException ability to prioritize application/json over text/html","user":{"login":"loicgasser","id":3306154,"avatar_url":"https://avatars2.githubusercontent.com/u/3306154?v=3","gravatar_id":"","url":"https://api.github.com/users/loicgasser","html_url":"https://github.com/loicgasser","followers_url":"https://api.github.com/users/loicgasser/followers","following_url":"https://api.github.com/users/loicgasser/following{/other_user}","gists_url":"https://api.github.com/users/loicgasser/gists{/gist_id}","starred_url":"https://api.github.com/users/loicgasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loicgasser/subscriptions","organizations_url":"https://api.github.com/users/loicgasser/orgs","repos_url":"https://api.github.com/users/loicgasser/repos","events_url":"https://api.github.com/users/loicgasser/events{/privacy}","received_events_url":"https://api.github.com/users/loicgasser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-30T14:20:26Z","updated_at":"2017-03-30T14:34:33Z","closed_at":null,"body":"Hi,\r\n\r\nI was wondering if it would be possible to prioritize json formatted response type over text/html on demand.\r\n\r\nLooking at the code, it seems to me that this would not be to hard (works just fine locally):\r\nhttps://github.com/Pylons/pyramid/blob/master/pyramid/httpexceptions.py#L256\r\n\r\nAt the moment without explicitly setting the `Accept` header in the request header, we can't define a default behaviour for our http response content type formatting.\r\n\r\nMaybe via an additional argument in HTTPException?\r\n\r\nDoes this make sense to you?"},"comment":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/comments/290430102","html_url":"https://github.com/Pylons/pyramid/issues/2987#issuecomment-290430102","issue_url":"https://api.github.com/repos/Pylons/pyramid/issues/2987","id":290430102,"user":{"login":"loicgasser","id":3306154,"avatar_url":"https://avatars2.githubusercontent.com/u/3306154?v=3","gravatar_id":"","url":"https://api.github.com/users/loicgasser","html_url":"https://github.com/loicgasser","followers_url":"https://api.github.com/users/loicgasser/followers","following_url":"https://api.github.com/users/loicgasser/following{/other_user}","gists_url":"https://api.github.com/users/loicgasser/gists{/gist_id}","starred_url":"https://api.github.com/users/loicgasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loicgasser/subscriptions","organizations_url":"https://api.github.com/users/loicgasser/orgs","repos_url":"https://api.github.com/users/loicgasser/repos","events_url":"https://api.github.com/users/loicgasser/events{/privacy}","received_events_url":"https://api.github.com/users/loicgasser/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T14:34:33Z","updated_at":"2017-03-30T14:34:33Z","body":"This is roughly what I have in mind:\r\nhttps://github.com/Pylons/pyramid/compare/master...loicgasser:default_ctype"}}
{"actor":{"display_login":"loicgasser"}}