We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cd093d commit 3453b17Copy full SHA for 3453b17
Flow.Launcher.Infrastructure/Http/Http.cs
@@ -16,13 +16,7 @@ public static class Http
16
{
17
private const string UserAgent = @"Mozilla/5.0 (Trident/7.0; rv:11.0) like Gecko";
18
19
- private static HttpClient client;
20
-
21
- private static SocketsHttpHandler socketsHttpHandler = new SocketsHttpHandler()
22
- {
23
- UseProxy = true,
24
- Proxy = WebProxy
25
- };
+ private static HttpClient client = new HttpClient();
26
27
static Http()
28
@@ -32,7 +26,6 @@ static Http()
32
| SecurityProtocolType.Tls11
33
| SecurityProtocolType.Tls12;
34
35
- client = new HttpClient(socketsHttpHandler, false);
36
29
client.DefaultRequestHeaders.Add("User-Agent", UserAgent);
37
30
HttpClient.DefaultProxy = WebProxy;
38
31
}
0 commit comments