{"action":"created","issue":{"url":"https://api.github.com/repos/r0man/cljs-http/issues/45","labels_url":"https://api.github.com/repos/r0man/cljs-http/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/r0man/cljs-http/issues/45/comments","events_url":"https://api.github.com/repos/r0man/cljs-http/issues/45/events","html_url":"https://github.com/r0man/cljs-http/pull/45","id":56102734,"number":45,"title":"Add set-default-header!","user":{"login":"brentvatne","id":90494,"avatar_url":"https://avatars.githubusercontent.com/u/90494?v=3","gravatar_id":"","url":"https://api.github.com/users/brentvatne","html_url":"https://github.com/brentvatne","followers_url":"https://api.github.com/users/brentvatne/followers","following_url":"https://api.github.com/users/brentvatne/following{/other_user}","gists_url":"https://api.github.com/users/brentvatne/gists{/gist_id}","starred_url":"https://api.github.com/users/brentvatne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentvatne/subscriptions","organizations_url":"https://api.github.com/users/brentvatne/orgs","repos_url":"https://api.github.com/users/brentvatne/repos","events_url":"https://api.github.com/users/brentvatne/events{/privacy}","received_events_url":"https://api.github.com/users/brentvatne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-31T00:20:29Z","updated_at":"2015-02-09T02:19:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/r0man/cljs-http/pulls/45","html_url":"https://github.com/r0man/cljs-http/pull/45","diff_url":"https://github.com/r0man/cljs-http/pull/45.diff","patch_url":"https://github.com/r0man/cljs-http/pull/45.patch"},"body":"It's common to need to set headers such as `X-Csrf-Token` on each request, so I've had a go at trying to add that functionality in here. I also swapped out the `camelize` function for `>HTTP-Header-Case-String` from [camel-snake-kebab](https://github.com/qerub/camel-snake-kebab) as well - it's a bit more robust in that it works as expected for strings and keywords, and it also [factors in upper case HTTP headers](https://github.com/qerub/camel-snake-kebab/blob/stable/src/camel_snake_kebab/internals/misc.cljx#L10-L11).\r\n\r\nThis PR renders #44 moot.\r\n\r\n:8ball: "},"comment":{"url":"https://api.github.com/repos/r0man/cljs-http/issues/comments/73448515","html_url":"https://github.com/r0man/cljs-http/pull/45#issuecomment-73448515","issue_url":"https://api.github.com/repos/r0man/cljs-http/issues/45","id":73448515,"user":{"login":"brentvatne","id":90494,"avatar_url":"https://avatars.githubusercontent.com/u/90494?v=3","gravatar_id":"","url":"https://api.github.com/users/brentvatne","html_url":"https://github.com/brentvatne","followers_url":"https://api.github.com/users/brentvatne/followers","following_url":"https://api.github.com/users/brentvatne/following{/other_user}","gists_url":"https://api.github.com/users/brentvatne/gists{/gist_id}","starred_url":"https://api.github.com/users/brentvatne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentvatne/subscriptions","organizations_url":"https://api.github.com/users/brentvatne/orgs","repos_url":"https://api.github.com/users/brentvatne/repos","events_url":"https://api.github.com/users/brentvatne/events{/privacy}","received_events_url":"https://api.github.com/users/brentvatne/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T02:19:55Z","updated_at":"2015-02-09T02:19:55Z","body":"@r0man - reset the branch to master and remade this as a middleware rather than based on an atom."}}