diff --git a/Octokit/Http/HttpClientAdapter.cs b/Octokit/Http/HttpClientAdapter.cs index 873ab75272..2b48053e85 100644 --- a/Octokit/Http/HttpClientAdapter.cs +++ b/Octokit/Http/HttpClientAdapter.cs @@ -28,7 +28,10 @@ public HttpClientAdapter(Func getHandler) Ensure.ArgumentNotNull(getHandler, nameof(getHandler)); #if HAS_SERVICEPOINTMANAGER - ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; + if (ServicePointManager.SecurityProtocol != 0) + { + ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; + } #endif _http = new HttpClient(new RedirectHandler { InnerHandler = getHandler() });