From f020bd6f3baf58cf37f798551d2f1a28133fe2a0 Mon Sep 17 00:00:00 2001 From: cvium Date: Fri, 17 Jun 2022 09:00:59 +0200 Subject: [PATCH] use ignore case for scheme comparison --- Emby.Server.Implementations/ApplicationHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index f3aaef0778..32289625fe 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1135,7 +1135,7 @@ namespace Emby.Server.Implementations // NOTE: If no BaseUrl is set then UriBuilder appends a trailing slash, but if there is no BaseUrl it does // not. For consistency, always trim the trailing slash. scheme ??= ListenWithHttps ? Uri.UriSchemeHttps : Uri.UriSchemeHttp; - var isHttps = scheme == Uri.UriSchemeHttps; + var isHttps = string.Equals(scheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase); return new UriBuilder { Scheme = scheme,