mirror of https://github.com/lidarr/Lidarr
Fix: Don't handle content requests in IndexHtmlMapper
This commit is contained in:
parent
2ccc5af8d0
commit
8f98fb6c4e
|
@ -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)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Nancy;
|
||||
using Nancy.Responses;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using Lidarr.Http.Frontend.Mappers;
|
||||
|
|
Loading…
Reference in New Issue