Skip to content

Commit 46562b1

Browse files
authored
Fix http2cat sample (#50863)
* Fix http2cat sample As of #41558, four settings are expected, not three.
1 parent e6c7c01 commit 46562b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Servers/Kestrel/samples/http2cat/Program.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public static async Task Main(string[] args)
2828

2929
internal static async Task RunTestCase(Http2Utilities h2Connection)
3030
{
31-
await h2Connection.InitializeConnectionAsync();
31+
// Kestrel sends a fourth setting, SETTINGS_ENABLE_CONNECT_PROTOCOL
32+
await h2Connection.InitializeConnectionAsync(expectedSettingsCount: 4);
3233

3334
h2Connection.Logger.LogInformation("Initialized http2 connection. Starting stream 1.");
3435

0 commit comments

Comments
 (0)