1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-31 03:11:07 +02:00

Fixed: Case sensitivity in handling of static resource names.

This commit is contained in:
Taloth Saldono 2017-12-06 20:24:44 +01:00
parent 195a761c29
commit 0008f28236

View File

@ -1,3 +1,4 @@
using System;
using System.IO;
using NLog;
using NzbDrone.Common.Disk;
@ -28,7 +29,9 @@ public override string Map(string resourceUrl)
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 @@ public override bool CanHandle(string resourceUrl)
resourceUrl.EndsWith("oauth.html");
}
}
}
}