aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs4
1 files 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());
}
/// <summary>