Преглед изворни кода

User proper File constructor

crobibero пре 5 година
родитељ
комит
9b45ee440c
1 измењених фајлова са 1 додато и 1 уклоњено
  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>