Browse Source

User proper File constructor

crobibero 5 years ago
parent
commit
9b45ee440c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Api/Controllers/Images/RemoteImageController.cs

+ 1 - 1
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>