瀏覽代碼

Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Cody Robibero 3 年之前
父節點
當前提交
bdbac12d4f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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] == '/'))
                 {