added IE=edge header to IndexHtml

This commit is contained in:
Keivan Beigi 2013-09-17 15:03:16 -07:00
parent fa993109fc
commit cdb195a44f
2 changed files with 10 additions and 1 deletions

View File

@ -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());

View File

@ -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);