diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-05-26 19:33:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 19:33:20 +0200 |
| commit | 0676d1c2f45eb19c993a0e130c6fbef0eade67d9 (patch) | |
| tree | eeda3fd9792c14b80d3f929d8a616f1c3e2cf888 | |
| parent | 10e381f66f957ffa2e8339a02b0c970086673739 (diff) | |
Update WebSocketSharpRequest.cs
| -rw-r--r-- | Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs index 5554aa97f..7488b1938 100644 --- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs +++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs @@ -208,9 +208,8 @@ namespace Emby.Server.Implementations.SocketSharp private 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(); |
