public void SetXDownloadOptionsHeader(HttpContext context) { var config = _headerConfigurationOverrideHelper.GetXDownloadOptionsWithOverride(context); if (config == null) { return; } var oldConfig = _contextConfigurationHelper.GetXDownloadOptionsConfiguration(context); var result = _headerGenerator.CreateXDownloadOptionsResult(config, oldConfig); _headerResultHandler.HandleHeaderResult(context.Response, result); }