mirror of
https://github.com/psforever/GameLauncher.git
synced 2026-01-19 18:24:45 +00:00
Remove unnecessary HttpClientHandler code since .NET 4.8 takes care of using recent TLS versions based on system configurations.
This commit is contained in:
parent
c72061bc0e
commit
ec0c4eb218
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue