File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ private HttpClient CreateHttpClient(string url)
6262#pragma warning disable CA2000 // Dispose objects before losing scope
6363 var httpMessageHandler = new HttpClientHandler ( ) ;
6464#pragma warning restore CA2000 // Dispose objects before losing scope
65- if ( _settings . TryGetValue ( "forcetls12" , out string value ) && value . Length > 0 )
65+ if ( _settings . TryGetValue ( Constants . ForceTls12 , out string value ) && value . Length > 0 )
6666 {
6767 httpMessageHandler . SslProtocols = System . Security . Authentication . SslProtocols . Tls12 ;
6868 }
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ internal class Constants
1717 public const string HttpsProxyPassword = "https_proxy.password" ;
1818 public const string HttpsProxyBypass = "https_proxy.bypass" ;
1919
20+ public const string ForceTls12 = "forcetls12" ;
2021 }
2122}
You can’t perform that action at this time.
0 commit comments