{"action":"opened","issue":{"url":"https://api.github.com/repos/amcharts/dataloader/issues/11","labels_url":"https://api.github.com/repos/amcharts/dataloader/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/amcharts/dataloader/issues/11/comments","events_url":"https://api.github.com/repos/amcharts/dataloader/issues/11/events","html_url":"https://github.com/amcharts/dataloader/issues/11","id":113758595,"number":11,"title":"Accept headers not set","user":{"login":"antiquechrono","id":572187,"avatar_url":"https://avatars.githubusercontent.com/u/572187?v=3","gravatar_id":"","url":"https://api.github.com/users/antiquechrono","html_url":"https://github.com/antiquechrono","followers_url":"https://api.github.com/users/antiquechrono/followers","following_url":"https://api.github.com/users/antiquechrono/following{/other_user}","gists_url":"https://api.github.com/users/antiquechrono/gists{/gist_id}","starred_url":"https://api.github.com/users/antiquechrono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiquechrono/subscriptions","organizations_url":"https://api.github.com/users/antiquechrono/orgs","repos_url":"https://api.github.com/users/antiquechrono/repos","events_url":"https://api.github.com/users/antiquechrono/events{/privacy}","received_events_url":"https://api.github.com/users/antiquechrono/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-28T07:18:29Z","updated_at":"2015-10-28T07:18:29Z","closed_at":null,"body":"I just ran into an issue where Firefox wouldn't load any json graphs whereas Chrome would. It seems that Firefox sets a very specific accept header \r\n\r\ntext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n\r\nthat sets other accepted formats whereas chrome sets it as */* . The particular service I'm pulling data from can return xml or json depending on the accept headers and was choosing to return xml since the default header includes it. \r\n\r\nIt seems to me that a sensible default would be to set application/json or text/csv based on what is specified in the dataLoader section with the option to override the defaults through the use of the headers array which is what I used to fix this problem.\r\n\r\nAlso, the fact that you can specify the accept headers is not specified on this page \r\nhttp://www.amcharts.com/tutorials/using-data-loader-plugin/"}}