Skip to content

Commit

Permalink
Allow serving of unknown files (#299)
Browse files Browse the repository at this point in the history
By default, we only serve files with known MIME types, but that is an issue when dotnet library tests consume over a hundred different file extensions in their tests
  • Loading branch information
directhex committed Aug 20, 2020
1 parent 88996cb commit 43e9aa0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void Configure(IApplicationBuilder app)
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(s_hostingEnvironment.ContentRootPath),
ContentTypeProvider = provider
ContentTypeProvider = provider,
ServeUnknownFileTypes = true
});
}
}
Expand Down

0 comments on commit 43e9aa0

Please sign in to comment.