{"action":"created","issue":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/484","labels_url":"https://api.github.com/repos/Studio-42/elFinder/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/Studio-42/elFinder/issues/484/comments","events_url":"https://api.github.com/repos/Studio-42/elFinder/issues/484/events","html_url":"https://github.com/Studio-42/elFinder/issues/484","id":10305658,"number":484,"title":"missing X-Requested-With header","user":{"login":"grikdotnet","id":1154121,"avatar_url":"https://avatars.githubusercontent.com/u/1154121?v=3","gravatar_id":"","url":"https://api.github.com/users/grikdotnet","html_url":"https://github.com/grikdotnet","followers_url":"https://api.github.com/users/grikdotnet/followers","following_url":"https://api.github.com/users/grikdotnet/following{/other_user}","gists_url":"https://api.github.com/users/grikdotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/grikdotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grikdotnet/subscriptions","organizations_url":"https://api.github.com/users/grikdotnet/orgs","repos_url":"https://api.github.com/users/grikdotnet/repos","events_url":"https://api.github.com/users/grikdotnet/events{/privacy}","received_events_url":"https://api.github.com/users/grikdotnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-01-25T10:03:19Z","updated_at":"2015-04-06T12:13:45Z","closed_at":null,"body":"When uploading a file ElFinder does not provide the X-Requested-With header. \r\nThis leads to adding a non-JSON debug information to the response.\r\nIs it possible to add an option to add this request header to a request?"},"comment":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/comments/90031605","html_url":"https://github.com/Studio-42/elFinder/issues/484#issuecomment-90031605","issue_url":"https://api.github.com/repos/Studio-42/elFinder/issues/484","id":90031605,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T12:13:45Z","updated_at":"2015-04-06T12:13:45Z","body":"The X-Request-With header is common for Ajax requests, but the actual response type should be decided based on the Accept header. If you want JSON back, the `Accept` header should be `application/json` right? Perhaps that would be a good default."}}