mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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:
parent
6e89ca9a34
commit
51f5da8015
@ -115,7 +115,7 @@ namespace Jellyfin.Api.Controllers
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path));
|
||||
return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path), true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -667,7 +667,7 @@ namespace Jellyfin.Api.Controllers
|
||||
}
|
||||
|
||||
// TODO determine non-ASCII validity.
|
||||
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
|
||||
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user