enable httpclient decompression

This commit is contained in:
Matthew Brown 2022-11-12 22:58:13 +00:00
parent 5fdb341918
commit bdcd58f4cb

View File

@ -1,6 +1,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Net;
using System.Net.Http; using System.Net.Http;
using Microsoft.Win32; using Microsoft.Win32;
@ -66,7 +67,7 @@ namespace Bloxstrap
"By default, two mod presets are provided for restoring the old death\n" + "By default, two mod presets are provided for restoring the old death\n" +
"sound and the old mouse cursor.\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; private string? LaunchCommandLine;