Skip to content

Commit 6c4cf84

Browse files
committed
Remove duplicated HttpClientHandler default configuration
1 parent 96e208c commit 6c4cf84

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/UniGetUI.Core.Tools/Tools.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ namespace UniGetUI.Core.Tools
1515
{
1616
public static class CoreTools
1717
{
18-
19-
public static HttpClientHandler HttpClientConfig
20-
{
21-
get => new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.All };
22-
}
23-
2418
public static HttpClientHandler GenericHttpClientParameters
2519
{
2620
get

src/UniGetUI.PackageEngine.Operations/DownloadOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected override async Task<OperationVeredict> PerformOperation()
6060
}
6161

6262
Line($"Download URL found at {downloadUrl} ", LineType.Information);
63-
using var httpClient = new HttpClient(CoreTools.HttpClientConfig);
63+
using var httpClient = new HttpClient(CoreTools.GenericHttpClientParameters);
6464
using var response = await httpClient.GetAsync(downloadUrl, HttpCompletionOption.ResponseHeadersRead);
6565

6666
response.EnsureSuccessStatusCode();

0 commit comments

Comments
 (0)