Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
a7585dd2d6
commit
bdbac12d4f
|
@ -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…
Reference in New Issue
Block a user