Update WebSocketSharpRequest.cs

This commit is contained in:
Bond-009 2020-05-26 20:00:37 +02:00 committed by GitHub
parent 0676d1c2f4
commit b61ee09a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.SocketSharp
private static string GetQueryStringContentType(HttpRequest httpReq)
{
ReadOnlySpan<char> format = httpReq.Query["format"].ToString();
if (formatStr == ReadOnlySpan<char>.Empty)
if (format == ReadOnlySpan<char>.Empty)
{
const int FormatMaxLength = 4;
ReadOnlySpan<char> pi = httpReq.Path.ToString();