Fixed: Don't handle content requests in IndexHtmlMapper

pull/2/head
Mark McDowall 7 years ago committed by Leonardo Galli
parent 95bc93042c
commit 72a12a73af

@ -49,7 +49,11 @@ namespace NzbDrone.Api.Frontend.Mappers
public override bool CanHandle(string resourceUrl) public override bool CanHandle(string resourceUrl)
{ {
return !resourceUrl.Contains(".") && !resourceUrl.StartsWith("/login"); resourceUrl = resourceUrl.ToLowerInvariant();
return !resourceUrl.StartsWith("/content") &&
!resourceUrl.Contains(".") &&
!resourceUrl.StartsWith("/login");
} }
public override Response GetResponse(string resourceUrl) public override Response GetResponse(string resourceUrl)

@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Nancy.Responses;
using NLog; using NLog;
using Nancy; using Nancy;
using NzbDrone.Api.Frontend.Mappers; using NzbDrone.Api.Frontend.Mappers;

Loading…
Cancel
Save