File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
src/JsonApiDotNetCore/Middleware Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 11
11
using JsonApiDotNetCore . Serialization . Objects ;
12
12
using Microsoft . AspNetCore . Http ;
13
13
using Microsoft . AspNetCore . Http . Extensions ;
14
- using Microsoft . AspNetCore . Http . Features ;
15
14
using Microsoft . AspNetCore . Mvc . Controllers ;
16
15
using Microsoft . AspNetCore . Routing ;
17
16
using Microsoft . Extensions . Logging ;
@@ -130,8 +129,6 @@ private static async Task<bool> ValidateContentTypeHeaderAsync(string allowedCon
130
129
{
131
130
string ? contentType = httpContext . Request . ContentType ;
132
131
133
- // ReSharper disable once ConditionIsAlwaysTrueOrFalse
134
- // Justification: Workaround for https://github.com/dotnet/aspnetcore/issues/32097 (fixed in .NET 6)
135
132
if ( contentType != null && contentType != allowedContentType )
136
133
{
137
134
await FlushResponseAsync ( httpContext . Response , serializerOptions , new ErrorObject ( HttpStatusCode . UnsupportedMediaType )
You can’t perform that action at this time.
0 commit comments