aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2021-08-13 15:01:06 +0800
committerGitHub <noreply@github.com>2021-08-13 15:01:06 +0800
commita84dc794c6960a8a6e1dc0660e15a030e0f51305 (patch)
tree9e1c33cab6cca6681811d0a2f6a51902c108bf77 /Emby.Server.Implementations/HttpServer
parentd4f09c6c9b142081064c4008bc1e84fb17c81ad8 (diff)
parente33901b9f5f65eb8e48c018a30a37094ad874897 (diff)
Merge branch 'master' into tonemap-overlay
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index 488614609..b2625a68c 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -141,7 +141,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
}
// Temporary. TODO - allow clients to specify that the token has been shared with a casting device
- var allowTokenInfoUpdate = authInfo.Client == null || authInfo.Client.IndexOf("chromecast", StringComparison.OrdinalIgnoreCase) == -1;
+ var allowTokenInfoUpdate = authInfo.Client == null || !authInfo.Client.Contains("chromecast", StringComparison.OrdinalIgnoreCase);
if (string.IsNullOrWhiteSpace(authInfo.Device))
{