Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
pull/6404/head
Cody Robibero 3 years ago committed by GitHub
parent a7585dd2d6
commit bdbac12d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save