diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-06 10:45:40 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-06 10:45:40 -0500 |
| commit | f775f7c1fa6455aabda6a988ec5e43b52c896a39 (patch) | |
| tree | aa5993078a78b0ad53c8b033d20134a7c2dd7a4b /MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs | |
| parent | ec3caf5865d073f4eaba5642c761e237de456710 (diff) | |
try to forcefully prevent compatibility view
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs index 5f354fb0d..7d049549b 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs @@ -181,6 +181,9 @@ namespace MediaBrowser.Server.Implementations.HttpServer /// <param name="dto">The dto.</param> private void FilterResponse(IHttpRequest req, IHttpResponse res, object dto) { + // Try to prevent compatibility view + res.AddHeader("X-UA-Compatible", "IE=Edge"); + var exception = dto as Exception; if (exception != null) |
