Skip to content

Commit 770cf6a

Browse files
Update comments
1 parent 26d9466 commit 770cf6a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/AspNetCore/WebApi/src/Asp.Versioning.Http/DependencyInjection/IServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ LinkGenerator NewFactory( IServiceProvider serviceProvider )
153153
}
154154
}
155155

156-
// TODO: Remove in .NET 8.0
157-
// REF: https://github.com/dotnet/aspnetcore/issues/45051
156+
// TODO: Remove in .NET 9.0 or .NET 8.0 patch
157+
// BUG: https://github.com/dotnet/aspnetcore/issues/52577
158158
private static void TryAddProblemDetailsRfc7231Compliance( IServiceCollection services )
159159
{
160160
var descriptor = services.FirstOrDefault( IsDefaultProblemDetailsWriter );

src/AspNetCore/WebApi/src/Asp.Versioning.Http/Rfc7231ProblemDetailsWriter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public bool CanWrite( ProblemDetailsContext context )
3636
{
3737
var acceptHeaderValue = acceptHeader[i];
3838

39+
// TODO: the logic is inverted in .NET 8. remove when fixed
40+
// BUG: https://github.com/dotnet/aspnetcore/issues/52577
41+
// REF: https://github.com/dotnet/aspnetcore/blob/release/8.0/src/Http/Http.Extensions/src/DefaultProblemDetailsWriter.cs#L38
3942
if ( acceptHeaderValue.IsSubsetOf( jsonMediaType ) ||
4043
acceptHeaderValue.IsSubsetOf( problemDetailsJsonMediaType ) )
4144
{

0 commit comments

Comments
 (0)