Explorar o código

Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Cody Robibero %!s(int64=3) %!d(string=hai) anos
pai
achega
bdbac12d4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

+ 1 - 1
Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

@@ -59,7 +59,7 @@ namespace Jellyfin.Server.Middleware
                 }
 
                 if (!startsWithBaseUrl
-                    || localPath.Equals(baseUrlPrefix, StringComparison.OrdinalIgnoreCase)
+                    || localPath.Length == baseUrlPrefix.Length
                     // Local path is /baseUrl/
                     || (localPath.Length == baseUrlPrefix.Length + 1 && localPath[^1] == '/'))
                 {