Skip to content

Commit 457fbd6

Browse files
authored
Update branding to 6.0.16 (#47076)
1 parent e99b767 commit 457fbd6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<PropertyGroup Label="Version settings">
99
<AspNetCoreMajorVersion>6</AspNetCoreMajorVersion>
1010
<AspNetCoreMinorVersion>0</AspNetCoreMinorVersion>
11-
<AspNetCorePatchVersion>15</AspNetCorePatchVersion>
12-
<ValidateBaseline>true</ValidateBaseline>
11+
<AspNetCorePatchVersion>16</AspNetCorePatchVersion>
12+
<ValidateBaseline>false</ValidateBaseline>
1313
<!--
1414
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
1515
-->

src/Servers/Kestrel/test/Interop.FunctionalTests/HttpClientHttp2InteropTests.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,26 +1350,27 @@ public async Task Settings_MaxHeaderListSize_Server(string scheme)
13501350
{
13511351
ConfigureKestrel(webHostBuilder, scheme);
13521352
webHostBuilder.ConfigureServices(AddTestLogging)
1353-
.Configure(app => app.Run(context => throw new NotImplementedException()));
1353+
.Configure(app => app.Run(context => context.Response.WriteAsync("Hello World")));
13541354
});
13551355
using var host = await hostBuilder.StartAsync().DefaultTimeout();
13561356

13571357
var url = host.MakeUrl(scheme);
13581358

13591359
using var client = CreateClient();
1360-
// There's no point in waiting for the settings to sync, the client doesn't check the header list size setting.
1361-
// https://github.com/dotnet/runtime/blob/48a78bfa13e9c710851690621fc2c0fe1637802c/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs#L467-L494
1360+
// Send an initial request to ensure the settings get synced before the real test.
1361+
var responseBody = await client.GetStringAsync(url).DefaultTimeout();
1362+
Assert.Equal("Hello World", responseBody);
13621363

13631364
var request = CreateRequestMessage(HttpMethod.Get, url, content: null);
13641365
// The default size limit is 32kb.
13651366
for (var i = 0; i < 33; i++)
13661367
{
13671368
request.Headers.Add("header" + i, oneKbString + i);
13681369
}
1369-
var response = await client.SendAsync(request).DefaultTimeout();
1370-
await host.StopAsync().DefaultTimeout();
1370+
var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.SendAsync(request).DefaultTimeout());
1371+
Assert.Equal("The HTTP request headers length exceeded the server limit of 32768 bytes.", ex.Message);
13711372

1372-
Assert.Equal(HttpStatusCode.RequestHeaderFieldsTooLarge, response.StatusCode);
1373+
await host.StopAsync().DefaultTimeout();
13731374
}
13741375

13751376
[Theory]

0 commit comments

Comments
 (0)