Add support for web serving .mem files

This commit is contained in:
crobibero 2020-12-04 14:12:59 -07:00
parent cff2b7fed1
commit e49bb3f4e6

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),