{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/feign/issues/391","repository_url":"https://api.github.com/repos/Netflix/feign","labels_url":"https://api.github.com/repos/Netflix/feign/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/feign/issues/391/comments","events_url":"https://api.github.com/repos/Netflix/feign/issues/391/events","html_url":"https://github.com/Netflix/feign/issues/391","id":153961020,"number":391,"title":"Feign OkhttpClient doesn't add Content-Type as header when body is null for GET request","user":{"login":"gauravrmazra","id":6649207,"avatar_url":"https://avatars.githubusercontent.com/u/6649207?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravrmazra","html_url":"https://github.com/gauravrmazra","followers_url":"https://api.github.com/users/gauravrmazra/followers","following_url":"https://api.github.com/users/gauravrmazra/following{/other_user}","gists_url":"https://api.github.com/users/gauravrmazra/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravrmazra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravrmazra/subscriptions","organizations_url":"https://api.github.com/users/gauravrmazra/orgs","repos_url":"https://api.github.com/users/gauravrmazra/repos","events_url":"https://api.github.com/users/gauravrmazra/events{/privacy}","received_events_url":"https://api.github.com/users/gauravrmazra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-10T09:22:55Z","updated_at":"2016-05-11T06:12:00Z","closed_at":null,"body":"I am facing issue with feign.OkHttpClient. The problem is if the request is of GET type and request body is null, then Content-Type header is not added in the requestBody and also not in headers.\r\n<strike>This creates a problem where server accepts only spectific type of Content.</strike>\r\nThis creates a problem when Server consumes and/or accepts specific type of content.\r\n\r\nclass is feign.okhttp.OkHttpClient.java line number 66 and 89"},"comment":{"url":"https://api.github.com/repos/Netflix/feign/issues/comments/218370855","html_url":"https://github.com/Netflix/feign/issues/391#issuecomment-218370855","issue_url":"https://api.github.com/repos/Netflix/feign/issues/391","id":218370855,"user":{"login":"adriancole","id":64215,"avatar_url":"https://avatars.githubusercontent.com/u/64215?v=3","gravatar_id":"","url":"https://api.github.com/users/adriancole","html_url":"https://github.com/adriancole","followers_url":"https://api.github.com/users/adriancole/followers","following_url":"https://api.github.com/users/adriancole/following{/other_user}","gists_url":"https://api.github.com/users/adriancole/gists{/gist_id}","starred_url":"https://api.github.com/users/adriancole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriancole/subscriptions","organizations_url":"https://api.github.com/users/adriancole/orgs","repos_url":"https://api.github.com/users/adriancole/repos","events_url":"https://api.github.com/users/adriancole/events{/privacy}","received_events_url":"https://api.github.com/users/adriancole/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T06:12:00Z","updated_at":"2016-05-11T06:12:00Z","body":"there's no defined semantics for DELETE with a body, and as such we'd not\nencourage using this anti-pattern with special handling.\n\nhttp://tools.ietf.org/html/rfc7231#section-4.3.5\n"}}