Skip to content

Commit

Permalink
add mime-type for alternate javascript file extensions (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Nov 2, 2021
1 parent 18ae4a1 commit 5c299ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Microsoft.DotNet.XHarness.CLI/Commands/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ public void Configure(IApplicationBuilder app, IOptionsMonitor<TestWebServerOpti
{
var provider = new FileExtensionContentTypeProvider();
provider.Mappings[".wasm"] = "application/wasm";
provider.Mappings[".cjs"] = "text/javascript";
provider.Mappings[".mjs"] = "text/javascript";

foreach (var extn in new string[] { ".dll", ".pdb", ".dat", ".blat" })
{
Expand Down

0 comments on commit 5c299ed

Please sign in to comment.