From bdcd58f4cbed2a74c09555d4e8c400366a4ca91b Mon Sep 17 00:00:00 2001 From: Matthew Brown <97983689+bluepilledgreat@users.noreply.github.com> Date: Sat, 12 Nov 2022 22:58:13 +0000 Subject: [PATCH] enable httpclient decompression --- Bloxstrap/Bootstrapper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 1f75481..b660fcf 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -1,6 +1,7 @@ using System.Diagnostics; using System.IO; using System.IO.Compression; +using System.Net; using System.Net.Http; using Microsoft.Win32; @@ -66,7 +67,7 @@ namespace Bloxstrap "By default, two mod presets are provided for restoring the old death\n" + "sound and the old mouse cursor.\n"; - public static readonly HttpClient Client = new(); + public static readonly HttpClient Client = new(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.All }); private string? LaunchCommandLine;