The Free Software Media System - Server Backend & API
Update WebSocketSharpRequest.cs
Bond-0090676d1c2f45e
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.csindex 5554aa97f8..7488b1938f 100644--- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs+++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs@@ -208,9 +208,8 @@ namespace Emby.Server.Implementations.SocketSharpprivate static string GetQueryStringContentType(HttpRequest httpReq){- string formatStr = httpReq.Query["format"].ToString();- ReadOnlySpan<char> format = formatStr;- if (formatStr == null)+ ReadOnlySpan<char> format = httpReq.Query["format"].ToString();+ if (formatStr == ReadOnlySpan<char>.Empty){const int FormatMaxLength = 4;ReadOnlySpan<char> pi = httpReq.Path.ToString();