Actually, this makes more sense

This commit is contained in:
Archi
2023-02-03 02:32:17 +01:00
parent a8b28efe43
commit e266b8ad31

View File

@@ -76,9 +76,13 @@ public sealed class WebBrowser : IDisposable {
};
if (webProxy != null) {
HttpClientHandler.PreAuthenticate = true;
HttpClientHandler.Proxy = webProxy;
HttpClientHandler.UseProxy = true;
if (webProxy.Credentials != null) {
// We can be pretty sure that user knows what he's doing and that proxy indeed requires authentication, save roundtrip
HttpClientHandler.PreAuthenticate = true;
}
}
#if NETFRAMEWORK