The missing piece here is is that StringOutputFormatter needs to set the ContentType so that it gets overridden. The problem is that the formatter is likely called with something like application/json, but decides to write a string anyway. So because we're saying 'yes we can write' we also need to override what we're writing. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNet.Mvc.Abstractions.Test | ||
| Microsoft.AspNet.Mvc.ApiExplorer.Test | ||
| Microsoft.AspNet.Mvc.Core.Test | ||
| Microsoft.AspNet.Mvc.Cors.Test | ||
| Microsoft.AspNet.Mvc.DataAnnotations.Test | ||
| Microsoft.AspNet.Mvc.Formatters.Json.Test | ||
| Microsoft.AspNet.Mvc.Formatters.Xml.Test | ||
| Microsoft.AspNet.Mvc.FunctionalTests | ||
| Microsoft.AspNet.Mvc.IntegrationTests | ||
| Microsoft.AspNet.Mvc.Localization.Test | ||
| Microsoft.AspNet.Mvc.Razor.Host.Test | ||
| Microsoft.AspNet.Mvc.Razor.Test | ||
| Microsoft.AspNet.Mvc.TagHelpers.Test | ||
| Microsoft.AspNet.Mvc.Test | ||
| Microsoft.AspNet.Mvc.TestCommon | ||
| Microsoft.AspNet.Mvc.TestDiagnosticListener.Sources | ||
| Microsoft.AspNet.Mvc.ViewFeatures.Test | ||
| Microsoft.AspNet.Mvc.WebApiCompatShimTest | ||
| WebSites | ||