ASFB HttpClientHandler improvements

We should increase our security by checking against revoked SSL certificates, just in case.

When using proxy, pre-authenticating makes sense since if user provided the credentials, we can be pretty sure they're required and save a roundtrip.
This commit is contained in:
Archi
2023-02-03 02:29:55 +01:00
parent 6e8672cf84
commit a8b28efe43

View File

@@ -71,10 +71,12 @@ public sealed class WebBrowser : IDisposable {
AutomaticDecompression = DecompressionMethods.All,
#endif
CheckCertificateRevocationList = true,
CookieContainer = CookieContainer
};
if (webProxy != null) {
HttpClientHandler.PreAuthenticate = true;
HttpClientHandler.Proxy = webProxy;
HttpClientHandler.UseProxy = true;
}