mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Fix: Don't handle content requests in IndexHtmlMapper
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user