enable range processing for download endpoints

This commit is contained in:
cvium 2021-03-25 15:09:37 +01:00
parent 6d0b2ed080
commit b3d084044e

View File

@ -114,7 +114,7 @@ namespace Jellyfin.Api.Controllers
return NotFound(); return NotFound();
} }
return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path)); return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path), true);
} }
/// <summary> /// <summary>
@ -666,7 +666,7 @@ namespace Jellyfin.Api.Controllers
} }
// TODO determine non-ASCII validity. // TODO determine non-ASCII validity.
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename); return PhysicalFile(path, MimeTypes.GetMimeType(path), filename, true);
} }
/// <summary> /// <summary>