Read WinHTTP's proxy format correctly (dotnet/corefx#39371)
authorCory Nelson <phrosty@gmail.com>
Fri, 12 Jul 2019 16:58:34 +0000 (09:58 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2019 16:58:34 +0000 (09:58 -0700)
commitd030f6ae8a7a9d150d9859e700eccd051fa477b0
treeb0b3997348d94e5a85fff77ec06df7e4eb24a0f6
parent24a404edec107c65223b29ee7b703dab889195e0
Read WinHTTP's proxy format correctly (dotnet/corefx#39371)

Fix SocketsHttpHandler to properly read WinHTTP's proxy string format, preventing an exception when a PAC script returns multiple proxies. Resolves dotnet/corefx#39104.

Commit migrated from https://github.com/dotnet/corefx/commit/70b45baaf36eab34fcfb44056b030654dba9a4dc
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpWindowsProxy.cs
src/libraries/System.Net.Http/tests/UnitTests/HttpWindowsProxyTest.cs