mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Avoid unnecessary string -> byte[] conversion (Bond-009)
This commit is contained in:
parent
f97e844c4f
commit
c7feea27fd
@ -61,7 +61,7 @@ public class TrickplayController : BaseJellyfinApiController
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
return new FileContentResult(Encoding.UTF8.GetBytes(playlist), MimeTypes.GetMimeType("playlist.m3u8"));
|
||||
return Content(playlist, MimeTypes.GetMimeType("playlist.m3u8"), Encoding.UTF8);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user