diff --git a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs index 86914dea20..049291f7f6 100644 --- a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs @@ -45,6 +45,11 @@ namespace Emby.Server.Implementations.HttpServer.Security public User GetUser(object requestContext) { + if (requestContext is HttpRequest request) + { + return GetUser(request.HttpContext); + } + return GetUser((HttpContext)requestContext); } }