Skip to content

Commit 3025c18

Browse files
committed
Add WS2022 to OsSupport check for Bidirectional Streaming
1 parent b8ac8b2 commit 3025c18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public BidirectionStreamingTest(ITestOutputHelper output) : base(output)
2222

2323
// Build number suggested by the WinHttp team.
2424
// It can be reduced if bidirectional streaming is backported.
25-
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0);
25+
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0)
26+
|| Environment.OSVersion.Version == new Version(10, 0, 20348, 0); // This is required for WS2022
27+
// because WINHTTP_FLAG_AUTOMATIC_CHUNKING is backported to WS2022.
2628

2729
public static bool TestsEnabled => OsSupportsWinHttpBidirectionalStreaming && PlatformDetection.SupportsAlpn;
2830

0 commit comments

Comments
 (0)