Merge pull request #4660 from crobibero/mime-type

Add support for web serving .mem files
This commit is contained in:
Bond-009 2020-12-04 22:17:10 +01:00 committed by GitHub
commit 3980b5ce9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,8 +133,9 @@ namespace Jellyfin.Server
{
var extensionProvider = new FileExtensionContentTypeProvider();
// subtitles octopus requires .data files.
// subtitles octopus requires .data, .mem files.
extensionProvider.Mappings.Add(".data", MediaTypeNames.Application.Octet);
extensionProvider.Mappings.Add(".mem", MediaTypeNames.Application.Octet);
mainApp.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(_serverConfigurationManager.ApplicationPaths.WebPath),