{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1480","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1480/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1480/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1480/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1480","id":190183039,"number":1480,"title":"CloseableHttpClient decompresses gzip data by default","user":{"login":"tranhungt","id":4001160,"avatar_url":"https://avatars.githubusercontent.com/u/4001160?v=3","gravatar_id":"","url":"https://api.github.com/users/tranhungt","html_url":"https://github.com/tranhungt","followers_url":"https://api.github.com/users/tranhungt/followers","following_url":"https://api.github.com/users/tranhungt/following{/other_user}","gists_url":"https://api.github.com/users/tranhungt/gists{/gist_id}","starred_url":"https://api.github.com/users/tranhungt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranhungt/subscriptions","organizations_url":"https://api.github.com/users/tranhungt/orgs","repos_url":"https://api.github.com/users/tranhungt/repos","events_url":"https://api.github.com/users/tranhungt/events{/privacy}","received_events_url":"https://api.github.com/users/tranhungt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-17T22:29:02Z","updated_at":"2016-11-18T23:20:36Z","closed_at":null,"body":"The http client by default decompresses the GZIP data and therefore does not pass on the response exactly as it received from downstream services. This is an issue when the user request compressed (gzip) data via accept-encoding header, which the downstream respects by sending compressed gzip, but zuul changes the response signature by decompressing the response.\r\n\r\nThe solution is to add `.disableContentCompression()` on the `httpClientBuilder`.\r\n\r\nhttp://stackoverflow.com/questions/30216375/extracting-gzip-data-from-apache-httpclient-without-decompression\r\n\r\nhttps://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/route/SimpleHostRoutingFilter.java#L236"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/261667759","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1480#issuecomment-261667759","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1480","id":261667759,"user":{"login":"tranhungt","id":4001160,"avatar_url":"https://avatars.githubusercontent.com/u/4001160?v=3","gravatar_id":"","url":"https://api.github.com/users/tranhungt","html_url":"https://github.com/tranhungt","followers_url":"https://api.github.com/users/tranhungt/followers","following_url":"https://api.github.com/users/tranhungt/following{/other_user}","gists_url":"https://api.github.com/users/tranhungt/gists{/gist_id}","starred_url":"https://api.github.com/users/tranhungt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranhungt/subscriptions","organizations_url":"https://api.github.com/users/tranhungt/orgs","repos_url":"https://api.github.com/users/tranhungt/repos","events_url":"https://api.github.com/users/tranhungt/events{/privacy}","received_events_url":"https://api.github.com/users/tranhungt/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T23:20:36Z","updated_at":"2016-11-18T23:20:36Z","body":"@ryanjbaxter Sure thing, glad to. :)"}}
{"actor":{"display_login":"tranhungt"}}