{"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1231","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1231/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1231/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1231/events","html_url":"https://github.com/slimphp/Slim/pull/1231","id":76857578,"number":1231,"title":"Add helper function to retrieve accept headers if available","user":{"login":"gabriel403","id":118638,"avatar_url":"https://avatars.githubusercontent.com/u/118638?v=3","gravatar_id":"","url":"https://api.github.com/users/gabriel403","html_url":"https://github.com/gabriel403","followers_url":"https://api.github.com/users/gabriel403/followers","following_url":"https://api.github.com/users/gabriel403/following{/other_user}","gists_url":"https://api.github.com/users/gabriel403/gists{/gist_id}","starred_url":"https://api.github.com/users/gabriel403/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabriel403/subscriptions","organizations_url":"https://api.github.com/users/gabriel403/orgs","repos_url":"https://api.github.com/users/gabriel403/repos","events_url":"https://api.github.com/users/gabriel403/events{/privacy}","received_events_url":"https://api.github.com/users/gabriel403/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slimphp/Slim/labels/pending%20feedback","name":"pending feedback","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-15T21:08:46Z","updated_at":"2015-06-29T09:37:24Z","closed_at":"2015-06-28T20:22:04Z","pull_request":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/1231","html_url":"https://github.com/slimphp/Slim/pull/1231","diff_url":"https://github.com/slimphp/Slim/pull/1231.diff","patch_url":"https://github.com/slimphp/Slim/pull/1231.patch"},"body":"Simplifies the ability to retrieve accept headers, helpful in those situation where `X-Requested-With` is missing and thus the `isAjax` function doesn't respond correctly as then we can check for `application/json` in the accept headers."},"comment":{"url":"https://api.github.com/repos/slimphp/Slim/issues/comments/116573966","html_url":"https://github.com/slimphp/Slim/pull/1231#issuecomment-116573966","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1231","id":116573966,"user":{"login":"gabriel403","id":118638,"avatar_url":"https://avatars.githubusercontent.com/u/118638?v=3","gravatar_id":"","url":"https://api.github.com/users/gabriel403","html_url":"https://github.com/gabriel403","followers_url":"https://api.github.com/users/gabriel403/followers","following_url":"https://api.github.com/users/gabriel403/following{/other_user}","gists_url":"https://api.github.com/users/gabriel403/gists{/gist_id}","starred_url":"https://api.github.com/users/gabriel403/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabriel403/subscriptions","organizations_url":"https://api.github.com/users/gabriel403/orgs","repos_url":"https://api.github.com/users/gabriel403/repos","events_url":"https://api.github.com/users/gabriel403/events{/privacy}","received_events_url":"https://api.github.com/users/gabriel403/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T09:37:24Z","updated_at":"2015-06-29T09:37:24Z","body":"@akrabat OK that sounds reasonable, `hasAcceptHeader`"}}