Skip to content

Commit 4b7d4ab

Browse files
committed
feat: specify the CheckCertificateRevocationList for NoProxyHttpClientHandler
1 parent e1ae272 commit 4b7d4ab

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/WeihanLi.Common/Helpers/HttpHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public static bool IsWellKnownContentHeader(string header)
8484
private static readonly Lazy<HttpClient> SharedHttpClient = new(() => new(new NoProxyHttpClientHandler()
8585
{
8686
UseCookies = false,
87-
CheckCertificateRevocationList = false,
8887
#if NET
8988
AutomaticDecompression = DecompressionMethods.All
9089
#else

src/WeihanLi.Common/Http/NoProxyHttpClientHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ public NoProxyHttpClientHandler()
88
UseProxy = false;
99
UseCookies = false;
1010
AllowAutoRedirect = false;
11+
CheckCertificateRevocationList = false;
1112
}
1213
}

0 commit comments

Comments
 (0)