mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 23:35:25 +03:00
Address comments
This commit is contained in:
@@ -194,8 +194,8 @@ namespace Jellyfin.Server.SocketSharp
|
||||
{
|
||||
// TODO: @bond move to Span when Span.Split lands
|
||||
// https://github.com/dotnet/corefx/issues/26528
|
||||
var contentType = acceptsType?.Split(';')[0];
|
||||
acceptsAnything = contentType.IndexOf("*/*", StringComparison.Ordinal) != -1;
|
||||
var contentType = acceptsType?.Split(';')[0].Trim();
|
||||
acceptsAnything = contentType.Equals("*/*", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
if (acceptsAnything)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user