add expires response header

This commit is contained in:
Luke Pulverenti 2016-10-01 22:09:33 -04:00
parent 460e3635fd
commit 55a53cfab7

View file

@ -93,12 +93,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
}
}
}
if (responseHeaders != null)
if (responseHeaders == null)
{
AddResponseHeaders(result, responseHeaders);
responseHeaders = new Dictionary<string, string>();
}
responseHeaders["Expires"] = "-1";
AddResponseHeaders(result, responseHeaders);
return result;
}