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 8cd6696 commit befbf85Copy full SHA for befbf85
src/RestSharp/RestClient.cs
@@ -139,7 +139,11 @@ void ConfigureHttpMessageHandler(HttpClientHandler handler) {
139
handler.AutomaticDecompression = Options.AutomaticDecompression;
140
handler.PreAuthenticate = Options.PreAuthenticate;
141
handler.AllowAutoRedirect = Options.FollowRedirects;
142
- handler.Proxy = Options.Proxy;
+
143
+ if (handler.SupportsProxy)
144
+ {
145
+ handler.Proxy = Options.Proxy;
146
+ }
147
148
if (Options.RemoteCertificateValidationCallback != null)
149
handler.ServerCertificateCustomValidationCallback =
0 commit comments