mirror of https://github.com/Radarr/Radarr
added IE=edge header to IndexHtml
This commit is contained in:
parent
fa993109fc
commit
cdb195a44f
|
@ -1,4 +1,5 @@
|
|||
using System.IO;
|
||||
using Nancy;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
@ -27,6 +28,14 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||
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)
|
||||
{
|
||||
return StringToStream(GetIndexText());
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||
|
||||
public abstract bool CanHandle(string resourceUrl);
|
||||
|
||||
public Response GetResponse(string resourceUrl)
|
||||
public virtual Response GetResponse(string resourceUrl)
|
||||
{
|
||||
var filePath = Map(resourceUrl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue