aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-12 21:06:34 +0100
committerBond-009 <bond.009@outlook.com>2019-02-12 21:06:47 +0100
commit3f13851be54ce97df72fc27a15ee74c7600e38b1 (patch)
treea6cb6449b048f0a4f1537bad91b3ac84ae9c8000 /Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
parentea446fd4a3c41c1350a4faf34044bdf808d334fd (diff)
Address comments
Diffstat (limited to 'Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs')
-rw-r--r--Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs b/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
index d86293154..c2b71e9ef 100644
--- a/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
+++ b/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
@@ -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)
{