Fix: Don't handle content requests in IndexHtmlMapper

This commit is contained in:
Qstick 2017-12-13 21:49:37 -05:00
parent 2ccc5af8d0
commit 8f98fb6c4e
2 changed files with 7 additions and 5 deletions

View file

@ -49,9 +49,12 @@ namespace Lidarr.Http.Frontend.Mappers
public override bool CanHandle(string resourceUrl)
{
return !resourceUrl.Contains(".") &&
!resourceUrl.StartsWith("/login") &&
!resourceUrl.StartsWith("/Content");
resourceUrl = resourceUrl.ToLowerInvariant();
return !resourceUrl.StartsWith("/content") &&
!resourceUrl.Contains(".") &&
!resourceUrl.StartsWith("/login");
}
public override Response GetResponse(string resourceUrl)