Merge branch 'dev-v7' into 7.4.0

This commit is contained in:
Sebastiaan Janssen
2015-12-15 11:25:09 +01:00
2 changed files with 4 additions and 0 deletions

View File

@@ -490,6 +490,8 @@ namespace Umbraco.Web
httpContext.Response.Headers.Remove("Server");
//this doesn't normally work since IIS sets it but we'll keep it here anyways.
httpContext.Response.Headers.Remove("X-Powered-By");
httpContext.Response.Headers.Remove("X-AspNet-Version");
httpContext.Response.Headers.Remove("X-AspNetMvc-Version");
}
catch (PlatformNotSupportedException ex)
{

View File

@@ -146,6 +146,8 @@ namespace Umbraco.Web
});
ClientDependencySettings.Instance.MvcRendererCollection.Add(renderer);
// Disable the X-AspNetMvc-Version HTTP Header
MvcHandler.DisableMvcResponseHeader = true;
InstallHelper insHelper = new InstallHelper(UmbracoContext.Current);
insHelper.DeleteLegacyInstaller();