{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/californium/issues/32","labels_url":"https://api.github.com/repos/eclipse/californium/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/californium/issues/32/comments","events_url":"https://api.github.com/repos/eclipse/californium/issues/32/events","html_url":"https://github.com/eclipse/californium/pull/32","id":86191396,"number":32,"title":"Compare mime types directly in HttpTranslator","user":{"login":"plemarquand","id":667875,"avatar_url":"https://avatars.githubusercontent.com/u/667875?v=3","gravatar_id":"","url":"https://api.github.com/users/plemarquand","html_url":"https://github.com/plemarquand","followers_url":"https://api.github.com/users/plemarquand/followers","following_url":"https://api.github.com/users/plemarquand/following{/other_user}","gists_url":"https://api.github.com/users/plemarquand/gists{/gist_id}","starred_url":"https://api.github.com/users/plemarquand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plemarquand/subscriptions","organizations_url":"https://api.github.com/users/plemarquand/orgs","repos_url":"https://api.github.com/users/plemarquand/repos","events_url":"https://api.github.com/users/plemarquand/events{/privacy}","received_events_url":"https://api.github.com/users/plemarquand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-08T14:09:18Z","updated_at":"2015-06-10T13:35:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eclipse/californium/pulls/32","html_url":"https://github.com/eclipse/californium/pull/32","diff_url":"https://github.com/eclipse/californium/pull/32.diff","patch_url":"https://github.com/eclipse/californium/pull/32.patch"},"body":"When translating HTTP requests in the proxy, if the contentType was created via ContentType.parse the charset of the translated request would always be modified to be ISO_8859_1 even if the content type was application/json. The newly created content type was compared to the existing static instance using object equality instead of .equals().\r\n\r\nFixes the issue by comparing mime types directly."},"comment":{"url":"https://api.github.com/repos/eclipse/californium/issues/comments/110755107","html_url":"https://github.com/eclipse/californium/pull/32#issuecomment-110755107","issue_url":"https://api.github.com/repos/eclipse/californium/issues/32","id":110755107,"user":{"login":"plemarquand","id":667875,"avatar_url":"https://avatars.githubusercontent.com/u/667875?v=3","gravatar_id":"","url":"https://api.github.com/users/plemarquand","html_url":"https://github.com/plemarquand","followers_url":"https://api.github.com/users/plemarquand/followers","following_url":"https://api.github.com/users/plemarquand/following{/other_user}","gists_url":"https://api.github.com/users/plemarquand/gists{/gist_id}","starred_url":"https://api.github.com/users/plemarquand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plemarquand/subscriptions","organizations_url":"https://api.github.com/users/plemarquand/orgs","repos_url":"https://api.github.com/users/plemarquand/repos","events_url":"https://api.github.com/users/plemarquand/events{/privacy}","received_events_url":"https://api.github.com/users/plemarquand/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T13:35:32Z","updated_at":"2015-06-10T13:35:32Z","body":"@sophokles73 Additional patch cleans up the commented code and adds me as a contributor to the file."}}