{"action":"opened","issue":{"url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/109","labels_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/109/comments","events_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/109/events","html_url":"https://github.com/JulianBirch/cljs-ajax/issues/109","id":111417528,"number":109,"title":"Invalid Accept request header when not specifying format","user":{"login":"spalladino","id":429604,"avatar_url":"https://avatars.githubusercontent.com/u/429604?v=3","gravatar_id":"","url":"https://api.github.com/users/spalladino","html_url":"https://github.com/spalladino","followers_url":"https://api.github.com/users/spalladino/followers","following_url":"https://api.github.com/users/spalladino/following{/other_user}","gists_url":"https://api.github.com/users/spalladino/gists{/gist_id}","starred_url":"https://api.github.com/users/spalladino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalladino/subscriptions","organizations_url":"https://api.github.com/users/spalladino/orgs","repos_url":"https://api.github.com/users/spalladino/repos","events_url":"https://api.github.com/users/spalladino/events{/privacy}","received_events_url":"https://api.github.com/users/spalladino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T15:00:32Z","updated_at":"2015-10-14T15:00:32Z","closed_at":null,"body":"Using version 0.5.0 of cljs-ajax with clojurescript \"0.0-3211\", when performing a GET request to an URL without specifying either format or response format, the request header is set to the following:\r\n```\r\nAccept: a, p, p, l, i, c, a, t, i, o, n, /, j, s, o, n, ,,  , a, p, p, l, i, c, a, t, i, o, n, /, t, r, a, n, s, i, t, +, j, s, o, n, ,,  , a, p, p, l, i, c, a, t, i, o, n, /, t, r, a, n, s, i, t, +, t, r, a, n, s, i, t, ,,  , t, e, x, t, /, p, l, a, i, n, ,,  , t, e, x, t, /, h, t, m, l, ,,  , *, /, *\r\n```\r\n\r\nThe complete request is:\r\n```\r\nGET /products HTTP/1.1\r\n\r\nHost: localhost:3000\r\nConnection: keep-alive\r\nAccept: a, p, p, l, i, c, a, t, i, o, n, /, j, s, o, n, ,,  , a, p, p, l, i, c, a, t, i, o, n, /, t, r, a, n, s, i, t, +, j, s, o, n, ,,  , a, p, p, l, i, c, a, t, i, o, n, /, t, r, a, n, s, i, t, +, t, r, a, n, s, i, t, ,,  , t, e, x, t, /, p, l, a, i, n, ,,  , t, e, x, t, /, h, t, m, l, ,,  , *, /, *\r\nOrigin: http://localhost:3449\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36\r\nReferer: http://localhost:3449/\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en,es;q=0.8\r\n```\r\n\r\nThe code used for making the request:\r\n```cljs\r\n(GET\r\n  (str \"http://\" settings/host \"/products\")\r\n  {:handler         #(re-frame/dispatch [:products-load %1])\r\n   :error-handler   #(re-frame/dispatch [:products-load-error %1])})\r\n```\r\n\r\nThe full set of dependencies from `project.clj` is:\r\n```clj\r\n[[org.clojure/clojure \"1.6.0\"]\r\n [org.clojure/clojurescript \"0.0-3211\"]\r\n [reagent \"0.5.1\"]\r\n [re-frame \"0.4.1\"]\r\n [re-com \"0.6.1\"]\r\n [secretary \"1.2.3\"]\r\n [cljs-ajax \"0.5.0\"]]\r\n```\r\n\r\nThis is easily worked around by specifying `response-format` when performing the request, for instance."}}