Kaynağa Gözat

-fix authorizationHeader is no longer a string

Tommaso Stocchi 4 yıl önce
ebeveyn
işleme
d1b34a1e97

+ 2 - 2
Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

@@ -264,8 +264,8 @@ namespace Emby.Server.Implementations.HttpServer.Security
             }
 
             // Remove up until the first space
-            authorizationHeader = parts[1];
-            return GetParts(authorizationHeader);
+            authorizationHeader = authorizationHeader[(firstSpace + 1)..];
+            return GetParts(authorizationHeader.ToString());
         }
 
         /// <summary>