Move ManagedHandler version/chunking validation earlier (dotnet/corefx#26766)
authorStephen Toub <stoub@microsoft.com>
Fri, 2 Feb 2018 01:15:16 +0000 (20:15 -0500)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2018 01:15:16 +0000 (20:15 -0500)
commitbebcb3fe258110e130d76c010a21b954430e84b9
treef657b44e472fb575a7d21b9e3680146da0bf4d7c
parent0636603b5c91b258e256263ad3801041c7d85f3a
Move ManagedHandler version/chunking validation earlier (dotnet/corefx#26766)

Move it to ManagedHandler.SendAsync rather than HttpConnection.SendAsync so that it happens before we even try to get a connection.  A minor benefit of the change as well is that isHttp10 is no longer lifted to the state machine.

Commit migrated from https://github.com/dotnet/corefx/commit/bb738a07720a8c0888a088f2adb737d2cbe09ca2
src/libraries/System.Net.Http/src/System/Net/Http/Managed/HttpConnection.cs
src/libraries/System.Net.Http/src/System/Net/Http/Managed/ManagedHandler.cs