{"action":"created","issue":{"url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/261","repository_url":"https://api.github.com/repos/luminus-framework/luminus-template","labels_url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/261/comments","events_url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/261/events","html_url":"https://github.com/luminus-framework/luminus-template/issues/261","id":178385960,"number":261,"title":"Not working with cljs-ajax response-formats","user":{"login":"deg","id":90383,"avatar_url":"https://avatars.githubusercontent.com/u/90383?v=3","gravatar_id":"","url":"https://api.github.com/users/deg","html_url":"https://github.com/deg","followers_url":"https://api.github.com/users/deg/followers","following_url":"https://api.github.com/users/deg/following{/other_user}","gists_url":"https://api.github.com/users/deg/gists{/gist_id}","starred_url":"https://api.github.com/users/deg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deg/subscriptions","organizations_url":"https://api.github.com/users/deg/orgs","repos_url":"https://api.github.com/users/deg/repos","events_url":"https://api.github.com/users/deg/events{/privacy}","received_events_url":"https://api.github.com/users/deg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-21T15:43:48Z","updated_at":"2016-09-22T20:58:22Z","closed_at":null,"body":"The current Luminus code does not play well with the `:response-format` parameter to the cljs-ajax calls (e.g. `GET` or `POST`).\r\n\r\nFor example, `:response-format :text` is documented to pass `Accept: \"*/*\"` to the AJAX call. But, from within a Luminus app, it passes `Accept: \"application/transit+json\"`\r\n\r\nThe problem is at [line 11 of ajax.cljs](https://github.com/luminus-framework/luminus-template/blob/master/resources/leiningen/new/luminus/cljs/src/cljs/ajax.cljs#L11) which is in an interceptor called after the cljs-ajax has already processed `:response-format`.\r\n\r\nI don't know the context of why this line is here, so not what the best fix is. For my app, it seems to work to simply remove it, but I assume that a more careful merge is needed for the general case."},"comment":{"url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/comments/249025881","html_url":"https://github.com/luminus-framework/luminus-template/issues/261#issuecomment-249025881","issue_url":"https://api.github.com/repos/luminus-framework/luminus-template/issues/261","id":249025881,"user":{"login":"yogthos","id":121208,"avatar_url":"https://avatars.githubusercontent.com/u/121208?v=3","gravatar_id":"","url":"https://api.github.com/users/yogthos","html_url":"https://github.com/yogthos","followers_url":"https://api.github.com/users/yogthos/followers","following_url":"https://api.github.com/users/yogthos/following{/other_user}","gists_url":"https://api.github.com/users/yogthos/gists{/gist_id}","starred_url":"https://api.github.com/users/yogthos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogthos/subscriptions","organizations_url":"https://api.github.com/users/yogthos/orgs","repos_url":"https://api.github.com/users/yogthos/repos","events_url":"https://api.github.com/users/yogthos/events{/privacy}","received_events_url":"https://api.github.com/users/yogthos/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T20:58:22Z","updated_at":"2016-09-22T20:58:22Z","body":"Does [this](https://github.com/luminus-framework/luminus-template/commit/daad10f432f100a1460205050bc9ea6f2d5293ac) look good to you?"}}
{"actor":{"display_login":"yogthos"}}