{"action":"closed","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/2016","labels_url":"https://api.github.com/repos/NuGet/Home/issues/2016/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/2016/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/2016/events","html_url":"https://github.com/NuGet/Home/issues/2016","id":129825829,"number":2016,"title":"nuget client doesn't understand gzip content-encoding","user":{"login":"johnataylor","id":2523898,"avatar_url":"https://avatars.githubusercontent.com/u/2523898?v=3","gravatar_id":"","url":"https://api.github.com/users/johnataylor","html_url":"https://github.com/johnataylor","followers_url":"https://api.github.com/users/johnataylor/followers","following_url":"https://api.github.com/users/johnataylor/following{/other_user}","gists_url":"https://api.github.com/users/johnataylor/gists{/gist_id}","starred_url":"https://api.github.com/users/johnataylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnataylor/subscriptions","organizations_url":"https://api.github.com/users/johnataylor/orgs","repos_url":"https://api.github.com/users/johnataylor/repos","events_url":"https://api.github.com/users/johnataylor/events{/privacy}","received_events_url":"https://api.github.com/users/johnataylor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Bug","name":"Type:Bug","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/22","html_url":"https://github.com/NuGet/Home/milestones/3.4","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/22/labels","id":1382170,"number":22,"title":"3.4","description":null,"creator":{"login":"feiling","id":2679220,"avatar_url":"https://avatars.githubusercontent.com/u/2679220?v=3","gravatar_id":"","url":"https://api.github.com/users/feiling","html_url":"https://github.com/feiling","followers_url":"https://api.github.com/users/feiling/followers","following_url":"https://api.github.com/users/feiling/following{/other_user}","gists_url":"https://api.github.com/users/feiling/gists{/gist_id}","starred_url":"https://api.github.com/users/feiling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feiling/subscriptions","organizations_url":"https://api.github.com/users/feiling/orgs","repos_url":"https://api.github.com/users/feiling/repos","events_url":"https://api.github.com/users/feiling/events{/privacy}","received_events_url":"https://api.github.com/users/feiling/received_events","type":"User","site_admin":false},"open_issues":228,"closed_issues":71,"state":"open","created_at":"2015-10-28T20:03:08Z","updated_at":"2016-01-30T00:55:28Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-29T17:05:44Z","updated_at":"2016-01-30T00:55:28Z","closed_at":"2016-01-30T00:55:28Z","body":"The nuget client doesn't understand gzip content-encoding. For example, placing gzip content in storage, setting the headers all correctly and the the UI will not show details. (Of course the UI should never have been fetching this blob in the first place but it does and that's where we are at.)\r\n\r\nExperimenting with this in a console app suggests the client code needs to set the AutomaticDecompression on the HttpClientHandler. (It should also set the Accept-Encoding header to gzip but in my test case that was being ignored because I was always sending gzip whatever the client asked for.) Code looks something like this (we actually have a custom client handler so it would be a little more complex but this represents the idea.)\r\n\r\n            var handler = new HttpClientHandler();\r\n            handler.AutomaticDecompression = DecompressionMethods.GZip;\r\n            var client = new HttpClient(handler);\r\n\r\n"}}