mirror of
https://github.com/fergalmoran/Quartzmin.git
synced 2026-02-05 15:42:15 +00:00
fix duplicit woff2 mapping
This commit is contained in:
@@ -125,7 +125,9 @@ namespace Quartzmin
|
||||
FileSystem = fs
|
||||
};
|
||||
|
||||
((FileExtensionContentTypeProvider)fsOoptions.StaticFileOptions.ContentTypeProvider).Mappings.Add(".woff2", "application/font-woff2");
|
||||
var mimeMap = ((FileExtensionContentTypeProvider)fsOoptions.StaticFileOptions.ContentTypeProvider).Mappings;
|
||||
if (!mimeMap.ContainsKey(".woff2"))
|
||||
mimeMap.Add(".woff2", "application/font-woff2");
|
||||
|
||||
app.UseFileServer(fsOoptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user