From a1bf1b99f56620ca3dac3a2d34bc42cad46bacb3 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 29 Oct 2017 21:26:22 -0400 Subject: [PATCH] Fixed: Case insensitive paths for static resources under Windows --- .../Frontend/Mappers/StaticResourceMapperBase.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Lidarr.Http/Frontend/Mappers/StaticResourceMapperBase.cs b/src/Lidarr.Http/Frontend/Mappers/StaticResourceMapperBase.cs index 5698d60f2..96307eae7 100644 --- a/src/Lidarr.Http/Frontend/Mappers/StaticResourceMapperBase.cs +++ b/src/Lidarr.Http/Frontend/Mappers/StaticResourceMapperBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using Nancy; using Nancy.Responses; @@ -21,10 +21,7 @@ namespace Lidarr.Http.Frontend.Mappers _diskProvider = diskProvider; _logger = logger; - if (!RuntimeInfo.IsProduction) - { - _caseSensitive = StringComparison.OrdinalIgnoreCase; - } + _caseSensitive = RuntimeInfo.IsProduction ? DiskProviderBase.PathStringComparison : StringComparison.OrdinalIgnoreCase; } public abstract string Map(string resourceUrl); @@ -52,4 +49,4 @@ namespace Lidarr.Http.Frontend.Mappers } } -} \ No newline at end of file +}