Fixed: Case sensitivity in handling of static resource names.
This commit is contained in:
parent
195a761c29
commit
0008f28236
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
|
@ -28,7 +29,9 @@ namespace NzbDrone.Api.Frontend.Mappers
|
||||||
|
|
||||||
public override bool CanHandle(string resourceUrl)
|
public override bool CanHandle(string resourceUrl)
|
||||||
{
|
{
|
||||||
return resourceUrl.StartsWith("/Content") ||
|
resourceUrl = resourceUrl.ToLowerInvariant();
|
||||||
|
|
||||||
|
return resourceUrl.StartsWith("/content") ||
|
||||||
resourceUrl.EndsWith(".js") ||
|
resourceUrl.EndsWith(".js") ||
|
||||||
resourceUrl.EndsWith(".map") ||
|
resourceUrl.EndsWith(".map") ||
|
||||||
resourceUrl.EndsWith(".css") ||
|
resourceUrl.EndsWith(".css") ||
|
||||||
|
|
Loading…
Reference in New Issue