Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

Commit 4d57ab3

Browse files
committed
Second take on issue #57
1 parent 8ad59fc commit 4d57ab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RestSharp.Portable.HttpClient.Shared/Impl/DefaultHttpClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public DefaultHttpClientFactory(bool setCredentials)
4747
#if USE_TYPEINFO
4848
var proxyField = typeof(HttpClientHandler).GetTypeInfo().GetDeclaredField("proxy");
4949
#else
50-
var proxyField = typeof(HttpClientHandler).GetField("proxy", BindingFlags.NonPublic);
50+
var proxyField = typeof(HttpClientHandler).GetField("proxy", BindingFlags.NonPublic | BindingFlags.Instance);
5151
#endif
5252
if (proxyField != null && proxyField.FieldType == typeof(IWebProxy) && !proxyField.IsInitOnly)
5353
_proxyField = proxyField;

0 commit comments

Comments
 (0)