From 3025c1862633ba89db07feeacc3bca5c76c2c3b0 Mon Sep 17 00:00:00 2001 From: Ahmet Ibrahim Aksoy Date: Fri, 12 Jul 2024 15:25:23 +0200 Subject: [PATCH] Add WS2022 to OsSupport check for Bidirectional Streaming --- .../tests/FunctionalTests/BidirectionStreamingTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/BidirectionStreamingTest.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/BidirectionStreamingTest.cs index a8bed0a66d7beb..af6015356b457a 100644 --- a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/BidirectionStreamingTest.cs +++ b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/BidirectionStreamingTest.cs @@ -22,7 +22,9 @@ public BidirectionStreamingTest(ITestOutputHelper output) : base(output) // Build number suggested by the WinHttp team. // It can be reduced if bidirectional streaming is backported. - public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0); + public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0) + || Environment.OSVersion.Version == new Version(10, 0, 20348, 0); // This is required for WS2022 + // because WINHTTP_FLAG_AUTOMATIC_CHUNKING is backported to WS2022. public static bool TestsEnabled => OsSupportsWinHttpBidirectionalStreaming && PlatformDetection.SupportsAlpn;