User proper File constructor
This commit is contained in:
parent
3c18745f53
commit
9b45ee440c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user