Skip to content

Commit 44c391d

Browse files
committed
https://github.com/filipw/Strathweb.CacheOutput/pull/122
1 parent c258a6f commit 44c391d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebApi.OutputCache.V2/CacheOutputAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected virtual MediaTypeHeaderValue GetExpectedMediaType(HttpConfiguration co
146146
if (actionContext.Request.Headers.Accept != null)
147147
{
148148
responseMediaType = actionContext.Request.Headers.Accept.FirstOrDefault();
149-
if (responseMediaType == null || !config.Formatters.Any(x => x.SupportedMediaTypes.Contains(responseMediaType)))
149+
if (responseMediaType == null || !config.Formatters.Any(x => x.SupportedMediaTypes.Any(value => value.MediaType == responseMediaType.MediaType)))
150150
{
151151
return DefaultMediaType;
152152
}

0 commit comments

Comments
 (0)