{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/55","repository_url":"https://api.github.com/repos/puppetlabs/clj-http-client","labels_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/55/comments","events_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/55/events","html_url":"https://github.com/puppetlabs/clj-http-client/issues/55","id":171783905,"number":55,"title":"Charset is overwritten with \"; charset=UTF-8\" when manually set.","user":{"login":"eriktjacobsen","id":1156604,"avatar_url":"https://avatars.githubusercontent.com/u/1156604?v=3","gravatar_id":"","url":"https://api.github.com/users/eriktjacobsen","html_url":"https://github.com/eriktjacobsen","followers_url":"https://api.github.com/users/eriktjacobsen/followers","following_url":"https://api.github.com/users/eriktjacobsen/following{/other_user}","gists_url":"https://api.github.com/users/eriktjacobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/eriktjacobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriktjacobsen/subscriptions","organizations_url":"https://api.github.com/users/eriktjacobsen/orgs","repos_url":"https://api.github.com/users/eriktjacobsen/repos","events_url":"https://api.github.com/users/eriktjacobsen/events{/privacy}","received_events_url":"https://api.github.com/users/eriktjacobsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-17T23:24:24Z","updated_at":"2016-08-18T12:03:17Z","closed_at":null,"body":"For the Clojure Sync Client: \r\n\r\nI'm trying to pass a header:\r\n\r\n\"content-type\": \"application/json; version=5\"\r\n\r\nWhich is a requirement of an API I am using... this gets changed, silently, into:\r\n\r\n\"content-type\": \"application/json; charset=UTF-8\"\r\n\r\nCausing the call to fail. There doesn't seem to be an option for this behavior or easy workaround. At the very least, perhaps this should be indicated in the returned `:opts` for the response, as library currently indicates the header was sent correctly.\r\n\r\nI'm currently looking through the patch for TK-145 which seems to touch similar code / issues, however in the mean time would appreciate any guidance or patch.\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/comments/240703112","html_url":"https://github.com/puppetlabs/clj-http-client/issues/55#issuecomment-240703112","issue_url":"https://api.github.com/repos/puppetlabs/clj-http-client/issues/55","id":240703112,"user":{"login":"KevinCorcoran","id":2945462,"avatar_url":"https://avatars.githubusercontent.com/u/2945462?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinCorcoran","html_url":"https://github.com/KevinCorcoran","followers_url":"https://api.github.com/users/KevinCorcoran/followers","following_url":"https://api.github.com/users/KevinCorcoran/following{/other_user}","gists_url":"https://api.github.com/users/KevinCorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinCorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinCorcoran/subscriptions","organizations_url":"https://api.github.com/users/KevinCorcoran/orgs","repos_url":"https://api.github.com/users/KevinCorcoran/repos","events_url":"https://api.github.com/users/KevinCorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/KevinCorcoran/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T12:03:17Z","updated_at":"2016-08-18T12:03:17Z","body":"Yeah, I think @camlow325 is on to the right solution.  I don't think that we need to add something to `:opts` to disable this behavior - at least, not to fix this particular bug (no comment on the merit of that idea for Other Reasons).  \r\n\r\nThe extent of this bug seems to be that we [wipe out the rest of the content-type parameters](https://github.com/puppetlabs/clj-http-client/blob/60e5a2450abef3f2a480dea573b59c1c605b30e3/src/java/com/puppetlabs/http/client/impl/JavaClient.java#L110-L117) (as defined [here](https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7)) when we explicitly set the charset if not defined.  Seems like it'd be a pretty easy and isolated bug to fix."}}
{"actor":{"display_login":"KevinCorcoran"}}