diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-06-03 02:45:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 02:45:22 -0400 |
| commit | 91b089c0fac7e6b6831f5768ab5e23ee5151d0be (patch) | |
| tree | 069058c49ed99cc98cd0c3a1c4c37f159bb69f48 /Emby.Server.Implementations/SocketSharp | |
| parent | b9618c8c015b5a49110c3abad8659525bdfac4fd (diff) | |
| parent | b61ee09a36ed38958dc3897be6a30ca8ad191813 (diff) | |
Merge pull request #3179 from Bond-009/bugs
Fix some 'bugs' flagged by sonarcloud
Diffstat (limited to 'Emby.Server.Implementations/SocketSharp')
| -rw-r--r-- | Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs index ee5131c1f..6ca58b1c3 100644 --- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs +++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs @@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.SocketSharp private static string GetQueryStringContentType(HttpRequest httpReq) { ReadOnlySpan<char> format = httpReq.Query["format"].ToString(); - if (format == null) + if (format == ReadOnlySpan<char>.Empty) { const int FormatMaxLength = 4; ReadOnlySpan<char> pi = httpReq.Path.ToString(); |
