mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
added IE=edge header to IndexHtml
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Nancy;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
@@ -27,6 +28,14 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||||||
return !resourceUrl.Contains(".");
|
return !resourceUrl.Contains(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override Response GetResponse(string resourceUrl)
|
||||||
|
{
|
||||||
|
var response = base.GetResponse(resourceUrl);
|
||||||
|
response.Headers["X-UA-Compatible"] = "IE=edge";
|
||||||
|
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
protected override Stream GetContentStream(string filePath)
|
protected override Stream GetContentStream(string filePath)
|
||||||
{
|
{
|
||||||
return StringToStream(GetIndexText());
|
return StringToStream(GetIndexText());
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||||||
|
|
||||||
public abstract bool CanHandle(string resourceUrl);
|
public abstract bool CanHandle(string resourceUrl);
|
||||||
|
|
||||||
public Response GetResponse(string resourceUrl)
|
public virtual Response GetResponse(string resourceUrl)
|
||||||
{
|
{
|
||||||
var filePath = Map(resourceUrl);
|
var filePath = Map(resourceUrl);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user