mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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);
|
var contentType = MimeTypes.GetMimeType(contentPath);
|
||||||
return new FileStreamResult(System.IO.File.OpenRead(contentPath), contentType);
|
return File(System.IO.File.OpenRead(contentPath), contentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user