aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-12-18 02:17:24 -0500
committerGitHub <noreply@github.com>2020-12-18 02:17:24 -0500
commit668e168c4710d8181e04ba57b7e3a690a2d2936a (patch)
tree8f1f4ecc3037903b6f32ee7439c4f911da0609ae /Jellyfin.Api/Controllers/LibraryController.cs
parentbe3129e012ab862bf80537a1668f32dda5db8554 (diff)
parent56ae63433f15c78aaebc2fe278829552fb8c5dd6 (diff)
Merge pull request #4819 from crobibero/download-name
Set filename when downloading file
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index 184843b39..c1538a431 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -667,7 +667,7 @@ namespace Jellyfin.Api.Controllers
}
// TODO determine non-ASCII validity.
- return PhysicalFile(path, MimeTypes.GetMimeType(path));
+ return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
}
/// <summary>