mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
User proper File constructor
This commit is contained in:
@@ -191,7 +191,7 @@ namespace Jellyfin.Api.Controllers.Images
|
|||||||
}
|
}
|
||||||
|
|
||||||
var contentType = MimeTypes.GetMimeType(contentPath);
|
var contentType = MimeTypes.GetMimeType(contentPath);
|
||||||
return new FileStreamResult(System.IO.File.OpenRead(contentPath), contentType);
|
return File(System.IO.File.OpenRead(contentPath), contentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user