Fix webui on mono 3.x. Please don't use 3.x :(

This commit is contained in:
WhatFox
2015-12-15 23:27:13 +00:00
parent 03a42af594
commit c2ec9827cd

View File

@@ -11,6 +11,9 @@ namespace Jackett
{ {
public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext) public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
{ {
if(null!= actionExecutedContext &&
null!= actionExecutedContext.Response &&
null!= actionExecutedContext.Response.Headers)
actionExecutedContext.Response.Headers.CacheControl = new System.Net.Http.Headers.CacheControlHeaderValue() actionExecutedContext.Response.Headers.CacheControl = new System.Net.Http.Headers.CacheControlHeaderValue()
{ {
NoStore = true, NoStore = true,