diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-08-28 16:32:50 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2021-08-28 16:32:50 -0600 |
| commit | cba07b1ca6862ef8450021b0e60ce2f366ff0d33 (patch) | |
| tree | d8a754110b47758445caa89efa4b3a35527bda34 /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | |
| parent | e88367fe70f8d5f2a0cec35792739fe23000a818 (diff) | |
Remove more and more warnings
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index b2625a68c..badc6ce6c 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs @@ -74,6 +74,7 @@ namespace Emby.Server.Implementations.HttpServer.Security auth.TryGetValue("Token", out token); } +#pragma warning disable CA1508 // string.IsNullOrEmpty(token) is always false. if (string.IsNullOrEmpty(token)) { token = headers["X-Emby-Token"]; @@ -111,6 +112,7 @@ namespace Emby.Server.Implementations.HttpServer.Security // Request doesn't contain a token. return authInfo; } +#pragma warning restore CA1508 authInfo.HasToken = true; var result = _authRepo.Get(new AuthenticationInfoQuery |
