Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit df7eaef

Browse files
committed
use TestHelper.AllowAllCertificates for validation callback to pass test netfx
1 parent 12d2682 commit df7eaef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ await LoopbackServer.CreateServerAsync(async (server, url) =>
27932793
{
27942794
// Point handler at out loopback proxy
27952795
handler.Proxy = new UseSpecifiedUriWebProxy(proxyUrl, null);
2796-
handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
2796+
handler.ServerCertificateCustomValidationCallback = TestHelper.AllowAllCertificates;
27972797

27982798
using (HttpClient client = new HttpClient(handler))
27992799
{

0 commit comments

Comments
 (0)