Skip to content

Commit

Permalink
Serve .webcil as application/octet-stream (#989)
Browse files Browse the repository at this point in the history
WebCIL is a new container format for .NET assemblies used when
publishing WebAssembly apps (see dotnet/runtime#79416)

Related to dotnet/runtime#80807
  • Loading branch information
lambdageek committed Jan 23, 2023
1 parent 87858f2 commit 8cc467c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.DotNet.XHarness.CLI/Commands/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void Configure(IApplicationBuilder app, IOptionsMonitor<TestWebServerOpti
provider.Mappings[".cjs"] = "text/javascript";
provider.Mappings[".mjs"] = "text/javascript";

foreach (var extn in new string[] { ".dll", ".pdb", ".dat", ".blat" })
foreach (var extn in new string[] { ".dll", ".pdb", ".dat", ".blat", ".webcil" })
{
provider.Mappings[extn] = "application/octet-stream";
}
Expand Down

0 comments on commit 8cc467c

Please sign in to comment.