Skip to content

Commit

Permalink
Update HttpChannelFactory.cs
Browse files Browse the repository at this point in the history
fix dotnet#4561 Update HttpChannelFactory to use fully specified bindingElement.Proxy
  • Loading branch information
dimalyshev authored Mar 12, 2021
1 parent 82d7c29 commit 71e41c7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ internal HttpChannelFactory(HttpTransportBindingElement bindingElement, BindingC
TransferMode = bindingElement.TransferMode;
_keepAliveEnabled = bindingElement.KeepAliveEnabled;

if (bindingElement.ProxyAddress != null)
if (bindingElement.Proxy != null)
_proxy = bindingElement.Proxy;
else if (bindingElement.ProxyAddress != null)
{
if (bindingElement.UseDefaultWebProxy)
{
Expand Down

0 comments on commit 71e41c7

Please sign in to comment.