Fix HttpWebRequest Connection header test (dotnet/corefx#29833)
authorDavid Shulman <david.shulman@microsoft.com>
Tue, 22 May 2018 01:08:01 +0000 (18:08 -0700)
committerGitHub <noreply@github.com>
Tue, 22 May 2018 01:08:01 +0000 (18:08 -0700)
commite78eb85245a5ee315b3e8d7fe0530ddc476bf503
treef0939743400c01c11b48628dee921c1ac386533b
parent8f1923fde674b98e2a8e9742fdea237da5c20ce5
Fix HttpWebRequest Connection header test (dotnet/corefx#29833)

Change the test to use a loopback server instead of an external server. And make sure to
not use a proxy since it isn't needed anyway. These changes will improve the test reliability.

Fixes dotnet/corefx#19225
Fixes dotnet/corefx#28437

Commit migrated from https://github.com/dotnet/corefx/commit/6fc873aee0d80622e12aed29d4e6fffd065afcfc
src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs