Update WebSocketSharpRequest.cs

pull/3179/head
Bond-009 5 years ago committed by GitHub
parent 10e381f66f
commit 0676d1c2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();

Loading…
Cancel
Save