mirror of
https://github.com/jellyfin/jellyfin
synced 2024-09-06 08:04:44 +00:00
This is only used in one place and therefore will always be HttpRequest.
This commit is contained in:
parent
1b3fcab6a4
commit
875562e580
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue