Skip to content

Commit a57895e

Browse files
committed
Fix loopback server for H/3
1 parent f2f6aef commit a57895e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/HttpClientHandlerTestBase.WinHttpHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ protected static LoopbackServerFactory GetFactoryForVersion(Version useVersion)
4141
{
4242
return useVersion.Major switch
4343
{
44+
1 => Http11LoopbackServerFactory.Singleton,
4445
2 => Http2LoopbackServerFactory.Singleton,
45-
_ => Http11LoopbackServerFactory.Singleton
46+
3 => Http3LoopbackServerFactory.Singleton,
47+
_ => throw new InvalidOperationException($"Unexpected HTTP version: {useVersion}");
4648
};
4749
}
4850

0 commit comments

Comments
 (0)