Skip to content

Commit

Permalink
Set the default proxy for SocketsHttpHandler to HttpWebRequest.Defaul…
Browse files Browse the repository at this point in the history
…tWebProxy
  • Loading branch information
martinpotter committed Oct 26, 2021
1 parent 2db665e commit 702eea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace System.Net.Http
{
partial class HttpClientHandler : HttpMessageHandler
{
static IMonoHttpClientHandler CreateDefaultHandler () => new SocketsHttpHandler ();
static IMonoHttpClientHandler CreateDefaultHandler () => new SocketsHttpHandler { Proxy = HttpWebRequest.DefaultWebProxy };
}
}

0 comments on commit 702eea3

Please sign in to comment.