Skip to content

Commit

Permalink
Enable all response decompression methods by default
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini committed Aug 1, 2022
1 parent 61712f1 commit 951d7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlainHttp/HttpClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected virtual HttpClient CreateProxiedClient(Uri proxyUrl)
UseProxy = true,
PooledConnectionLifetime = TimeSpan.FromMinutes(10),
UseCookies = false,
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
AutomaticDecompression = DecompressionMethods.All
};

HttpClient client = new HttpClient(handler)
Expand All @@ -103,7 +103,7 @@ protected virtual HttpClient CreateClient()
{
PooledConnectionLifetime = TimeSpan.FromMinutes(10),
UseCookies = false,
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
AutomaticDecompression = DecompressionMethods.All
};

HttpClient client = new HttpClient(handler)
Expand Down

0 comments on commit 951d7c3

Please sign in to comment.