diff options
| author | Ryan Petris <ryan@petris.net> | 2020-12-15 22:17:04 -0700 |
|---|---|---|
| committer | Ryan Petris <ryan@petris.net> | 2020-12-15 22:17:04 -0700 |
| commit | 875562e580a1f36d0364c04af22bfd9c7234ef95 (patch) | |
| tree | d00d1d4edd0a0daf54899eaee68a4b97b719cbf4 /Emby.Server.Implementations/HttpServer | |
| parent | 1b3fcab6a400a9370b54287f4371638530a00e19 (diff) | |
This is only used in one place and therefore will always be HttpRequest.
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/SessionContext.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs index 049291f7f..040b6b9e4 100644 --- a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs @@ -45,12 +45,7 @@ namespace Emby.Server.Implementations.HttpServer.Security public User GetUser(object requestContext) { - if (requestContext is HttpRequest request) - { - return GetUser(request.HttpContext); - } - - return GetUser((HttpContext)requestContext); + return GetUser(((HttpRequest)requestContext).HttpContext); } } } |
