Fix .gpg file download
This commit is contained in:
parent
f8d14d4ca4
commit
6a37419252
|
@ -1,4 +1,5 @@
|
|||
using LinqToDB.Data;
|
||||
using Microsoft.AspNetCore.StaticFiles;
|
||||
using zotanpw_web;
|
||||
using zotanpw_web.database;
|
||||
|
||||
|
@ -31,7 +32,8 @@ if (!app.Environment.IsDevelopment()) {
|
|||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseStaticFiles();
|
||||
var provider = new FileExtensionContentTypeProvider { Mappings = { [".gpg"] = "application/pgp-signature" } };
|
||||
app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = provider });
|
||||
|
||||
app.UseSession();
|
||||
app.UseRouting();
|
||||
|
@ -40,4 +42,4 @@ app.UseAuthorization();
|
|||
app.MapRazorPages();
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
||||
app.Run();
|
||||
|
|
Loading…
Reference in a new issue