You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serving static utf-8 encoded html pages with Asp.Net Core's UseStaticFiles, the response ContentType is set to text/html and not text/html; charset=utf-8
To Reproduce
Steps to reproduce the behavior:
Using ASP.NET Core v2.1.0, create a new Web API project, and disable IIS integration.
Add .UseDefaultFiles().UseStaticFiles() to Startup.Configure()
Create an html page named default.html in wwwroot and containing the following html fragment: