diff --git a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs index 61ed14e9b..4b3b939a1 100644 --- a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs +++ b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using NLog; using NzbDrone.Common.Disk; @@ -28,7 +29,9 @@ namespace NzbDrone.Api.Frontend.Mappers public override bool CanHandle(string resourceUrl) { - return resourceUrl.StartsWith("/Content") || + resourceUrl = resourceUrl.ToLowerInvariant(); + + return resourceUrl.StartsWith("/content") || resourceUrl.EndsWith(".js") || resourceUrl.EndsWith(".map") || resourceUrl.EndsWith(".css") || @@ -37,4 +40,4 @@ namespace NzbDrone.Api.Frontend.Mappers resourceUrl.EndsWith("oauth.html"); } } -} \ No newline at end of file +}