diff options
| author | crobibero <cody@robibe.ro> | 2020-06-17 10:51:50 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-17 10:51:50 -0600 |
| commit | 9b45ee440cd2d167aee63a05bcbb6137765b4da8 (patch) | |
| tree | 9678ab58a6acf0b76944fffa7b5af5d2a9e2dccb /Jellyfin.Api/Controllers | |
| parent | 3c18745f5392d45c1f008f15438e91831fb39294 (diff) | |
User proper File constructor
Diffstat (limited to 'Jellyfin.Api/Controllers')
| -rw-r--r-- | Jellyfin.Api/Controllers/Images/RemoteImageController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/Images/RemoteImageController.cs b/Jellyfin.Api/Controllers/Images/RemoteImageController.cs index f521dfdf2..7c5f17e9e 100644 --- a/Jellyfin.Api/Controllers/Images/RemoteImageController.cs +++ b/Jellyfin.Api/Controllers/Images/RemoteImageController.cs @@ -191,7 +191,7 @@ namespace Jellyfin.Api.Controllers.Images } var contentType = MimeTypes.GetMimeType(contentPath); - return new FileStreamResult(System.IO.File.OpenRead(contentPath), contentType); + return File(System.IO.File.OpenRead(contentPath), contentType); } /// <summary> |
