David Shulman cbb2fa09d4 Fix HttpRequestMessage.Version tests
The current tests validating HTTP request message version were depending on a server behavior that is not guaranteed. In particular, HTTP RFC 7230 states that servers are NOT required to respond back with the same minor version if they support a higher minor version. In fact, the RFC states that servers SHOULD send back the highest minor version they support. So, testing the response version to see if the client sent a particular request version only works for some servers. In particular the 'Http2Servers' used in these tests seemed to echo the minor version of the request.

However, depending on network configuration, intermediate proxies can change the HTTP version that ends up getting sent to the destination server. And as a result, we can have unpredictable behavior in these tests.

To fix this, the tests were switched to use a loopback server that has deterministic behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/d1ffcbcc120d3797dadce6196f499a0631e47caf
2016-04-28 10:57:12 -07:00
S
Description
.NET Runtime used for BepInEx
MIT
659 MiB
0 Stars 1 Watchers 0 Forks
Languages
C# 78.4%
C++ 11.1%
C 8.6%
Visual Basic .NET 0.5%
Assembly 0.4%
Other 0.6%