Răsfoiți Sursa

Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Cody Robibero 3 ani în urmă
părinte
comite
bdbac12d4f

+ 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] == '/'))
                 {