Skip to content

Commit fe2b032

Browse files
author
alex@zimarev.com
committed
1 parent 29805fc commit fe2b032

File tree

3 files changed

+9
-45
lines changed

3 files changed

+9
-45
lines changed

RestSharp/DefaultProxy.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

RestSharp/RestClient.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,18 @@ private void ConfigureHttp(IRestRequest request, IHttp http)
567567
}
568568

569569
http.AllowedDecompressionMethods = request.AllowedDecompressionMethods;
570-
571-
http.Proxy = Proxy ?? HttpWebRequest.GetSystemWebProxy();
572570

571+
http.Proxy = Proxy;
572+
573+
#if !NETSTANDARD2_0
574+
if (http.Proxy == null)
575+
http.Proxy = HttpWebRequest.GetSystemWebProxy();
576+
#endif
577+
578+
#if NETSTANDARD2_0
573579
var _ = WebRequest.DefaultWebProxy;
574580
WebRequest.DefaultWebProxy = http.Proxy;
581+
#endif
575582

576583
http.RemoteCertificateValidationCallback = RemoteCertificateValidationCallback;
577584
}

RestSharp/RestSharp.Signed.csproj

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)