Address comments

This commit is contained in:
Bond-009
2019-02-12 21:06:34 +01:00
parent ea446fd4a3
commit 3f13851be5
3 changed files with 5 additions and 4 deletions

View File

@@ -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)
{