diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/InputFormatter.cs b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/InputFormatter.cs index f231f3f1eb..8b9c00115f 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/InputFormatter.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/InputFormatter.cs @@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters public abstract Task ReadRequestBodyAsync(InputFormatterContext context); /// - public IReadOnlyList GetSupportedContentTypes(string contentType, Type objectType) + public virtual IReadOnlyList GetSupportedContentTypes(string contentType, Type objectType) { if (!CanReadType(objectType)) {