Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Cody Robibero 2021-08-07 09:06:31 -06:00 committed by GitHub
parent a7585dd2d6
commit bdbac12d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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