Skip to content

Commit 3453b17

Browse files
committed
Remove socketsHttpHandler
1 parent 4cd093d commit 3453b17

File tree

1 file changed

+1
-8
lines changed
  • Flow.Launcher.Infrastructure/Http

1 file changed

+1
-8
lines changed

Flow.Launcher.Infrastructure/Http/Http.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ public static class Http
1616
{
1717
private const string UserAgent = @"Mozilla/5.0 (Trident/7.0; rv:11.0) like Gecko";
1818

19-
private static HttpClient client;
20-
21-
private static SocketsHttpHandler socketsHttpHandler = new SocketsHttpHandler()
22-
{
23-
UseProxy = true,
24-
Proxy = WebProxy
25-
};
19+
private static HttpClient client = new HttpClient();
2620

2721
static Http()
2822
{
@@ -32,7 +26,6 @@ static Http()
3226
| SecurityProtocolType.Tls11
3327
| SecurityProtocolType.Tls12;
3428

35-
client = new HttpClient(socketsHttpHandler, false);
3629
client.DefaultRequestHeaders.Add("User-Agent", UserAgent);
3730
HttpClient.DefaultProxy = WebProxy;
3831
}

0 commit comments

Comments
 (0)