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 e732ece commit c5983adCopy full SHA for c5983ad
src/GitLabApiClient/Internal/Http/GitLabHttpFacade.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
+using System.Net;
4
using System.Net.Http;
5
using System.Threading.Tasks;
6
using GitLabApiClient.Internal.Http.Serialization;
@@ -20,6 +21,8 @@ internal sealed class GitLabHttpFacade
20
21
22
public GitLabHttpFacade(string hostUrl, RequestsJsonSerializer jsonSerializer, string authenticationToken = "")
23
{
24
+ // allow tls 1.1 and 1.2
25
+ ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
26
_httpClient = new HttpClient
27
28
BaseAddress = new Uri(hostUrl)
0 commit comments