Remove unnecessary HttpClientHandler code since .NET 4.8 takes care of using recent TLS versions based on system configurations.

This commit is contained in:
Resaec 2023-08-02 00:30:17 +02:00
parent c72061bc0e
commit ec0c4eb218

View file

@ -69,13 +69,7 @@ namespace PSLauncher
//
// init http client
//
httpClient = new HttpClient(
new HttpClientHandler()
{
AllowAutoRedirect = false,
SslProtocols = System.Security.Authentication.SslProtocols.Tls13 | System.Security.Authentication.SslProtocols.Tls12,
}
)
httpClient = new HttpClient
{
BaseAddress = new Uri(domains[domain]),
Timeout = TimeSpan.FromSeconds(DEFAULT_WEB_TIMEOUT)