We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c258a6f + 44c391d commit 37bc932Copy full SHA for 37bc932
src/WebApi.OutputCache.V2/CacheOutputAttribute.cs
@@ -146,7 +146,7 @@ protected virtual MediaTypeHeaderValue GetExpectedMediaType(HttpConfiguration co
146
if (actionContext.Request.Headers.Accept != null)
147
{
148
responseMediaType = actionContext.Request.Headers.Accept.FirstOrDefault();
149
- if (responseMediaType == null || !config.Formatters.Any(x => x.SupportedMediaTypes.Contains(responseMediaType)))
+ if (responseMediaType == null || !config.Formatters.Any(x => x.SupportedMediaTypes.Any(value => value.MediaType == responseMediaType.MediaType)))
150
151
return DefaultMediaType;
152
}
0 commit comments