We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0414183 commit a6c02fdCopy full SHA for a6c02fd
Source/Api/Utility/EncodingDelegatingHandler.cs
@@ -29,7 +29,7 @@ protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage reques
29
&& response.RequestMessage.Headers.AcceptEncoding.Count > 0) {
30
string encodingType = response.RequestMessage.Headers.AcceptEncoding.First().Value;
31
32
- if (response.Content != null)
+ if (response.Content != null && (encodingType == "gzip" || encodingType == "deflate"))
33
response.Content = new CompressedContent(response.Content, encodingType);
34
}
35
0 commit comments