mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Update WebSocketSharpRequest.cs
This commit is contained in:
parent
10e381f66f
commit
0676d1c2f4
@ -208,9 +208,8 @@ namespace Emby.Server.Implementations.SocketSharp
|
|||||||
|
|
||||||
private static string GetQueryStringContentType(HttpRequest httpReq)
|
private static string GetQueryStringContentType(HttpRequest httpReq)
|
||||||
{
|
{
|
||||||
string formatStr = httpReq.Query["format"].ToString();
|
ReadOnlySpan<char> format = httpReq.Query["format"].ToString();
|
||||||
ReadOnlySpan<char> format = formatStr;
|
if (formatStr == ReadOnlySpan<char>.Empty)
|
||||||
if (formatStr == null)
|
|
||||||
{
|
{
|
||||||
const int FormatMaxLength = 4;
|
const int FormatMaxLength = 4;
|
||||||
ReadOnlySpan<char> pi = httpReq.Path.ToString();
|
ReadOnlySpan<char> pi = httpReq.Path.ToString();
|
||||||
|
Loading…
Reference in New Issue
Block a user