Merge pull request #5621 from cvium/enable-range-processing-download

enable range processing for download endpoints

(cherry picked from commit 411570e6d404d11a99315971a025ed9d7cc1486e)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Claus Vium 2021-03-25 17:01:18 +01:00 committed by Joshua M. Boniface
parent 6e89ca9a34
commit 51f5da8015

View File

@ -115,7 +115,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>
@ -667,7 +667,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>