The Free Software Media System - Server Backend & API
User proper File constructor
crobibero9b45ee440cd2
diff --git a/Jellyfin.Api/Controllers/Images/RemoteImageController.cs b/Jellyfin.Api/Controllers/Images/RemoteImageController.csindex f521dfdf28..7c5f17e9e8 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>