File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/AspNetCore/WebApi/src/Asp.Versioning.Http Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments