aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-03-25 17:01:18 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-04-11 14:13:44 -0400
commit51f5da801516c719ca145a79c3ad741be5d60fc4 (patch)
treeb4d7bf4ac40bda4b99bba0d6ca8d461b61f3c15b /Jellyfin.Api/Controllers/LibraryController.cs
parent6e89ca9a343fb3ca7676d5d00f05aa0339447434 (diff)
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>
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index a105c755d..ffe7201a2 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -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>