diff --git a/src/Microsoft.AspNetCore.Mvc.Abstractions/Formatters/OutputFormatterCanWriteContext.cs b/src/Microsoft.AspNetCore.Mvc.Abstractions/Formatters/OutputFormatterCanWriteContext.cs index 84e34fdf46..e42c092624 100644 --- a/src/Microsoft.AspNetCore.Mvc.Abstractions/Formatters/OutputFormatterCanWriteContext.cs +++ b/src/Microsoft.AspNetCore.Mvc.Abstractions/Formatters/OutputFormatterCanWriteContext.cs @@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// Gets or sets a value to indicate whether the content type was specified by server-side code. /// This allows to /// implement stricter filtering on content types that, for example, are being considered purely - /// of an incoming Accept header. + /// because of an incoming Accept header. /// public virtual bool ContentTypeIsServerDefined { get; set; } diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaType.cs b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaType.cs index 3eda392005..48a76ae59a 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaType.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaType.cs @@ -194,7 +194,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// Gets the type of the . /// /// - /// For the media type "application/json", the property gives the value "application". + /// For the media type "application/json", this property gives the value "application". /// public StringSegment Type { get; } @@ -207,7 +207,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// Gets the subtype of the . /// /// - /// For the media type "application/vnd.example+json", the property gives the value + /// For the media type "application/vnd.example+json", this property gives the value /// "vnd.example+json". /// public StringSegment SubType { get; private set; } @@ -216,7 +216,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// Gets the subtype of the , excluding any structured syntax suffix. /// /// - /// For the media type "application/vnd.example+json", the property gives the value + /// For the media type "application/vnd.example+json", this property gives the value /// "vnd.example". /// public StringSegment SubTypeWithoutSuffix { get; private set; } @@ -225,7 +225,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters /// Gets the structured syntax suffix of the if it has one. /// /// - /// For the media type "application/vnd.example+json", the property gives the value + /// For the media type "application/vnd.example+json", this property gives the value /// "json". /// public StringSegment SubTypeSuffix { get; private set; } diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/OutputFormatter.cs b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/OutputFormatter.cs index 7eb026e584..fd0c37b972 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/OutputFormatter.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/OutputFormatter.cs @@ -123,7 +123,6 @@ namespace Microsoft.AspNetCore.Mvc.Formatters } else { - // Confirm this formatter var parsedContentType = new MediaType(context.ContentType); for (var i = 0; i < SupportedMediaTypes.Count; i++) {