Explorar o código

use ignore case for scheme comparison

cvium %!s(int64=3) %!d(string=hai) anos
pai
achega
f020bd6f3b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
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,