From d1b34a1e9797f4d6bbfe104bed5c42bdc953a692 Mon Sep 17 00:00:00 2001 From: Tommaso Stocchi Date: Thu, 3 Jun 2021 17:37:42 +0200 Subject: [PATCH] -fix authorizationHeader is no longer a string --- .../HttpServer/Security/AuthorizationContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index 95be6552b..f0a706ff5 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/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()); } ///