Skip to content

Commit

Permalink
Added AutomaticDecompression config, needed for SpotApi.ExchangeData.…
Browse files Browse the repository at this point in the history
…GetProductsAsync
  • Loading branch information
JKorf committed Jun 5, 2024
1 parent 98e94af commit deb57f8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static class ServiceCollectionExtensions
options.Timeout = restOptions.RequestTimeout;
}).ConfigurePrimaryHttpMessageHandler(() => {
var handler = new HttpClientHandler();
handler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
if (restOptions.Proxy != null)
{
handler.Proxy = new WebProxy
Expand Down

0 comments on commit deb57f8

Please sign in to comment.