function http_prepare_download_log()
{
if (isset($_GET['as3cf-download-log']) && wp_verify_nonce($_GET['nonce'], 'as3cf-download-log')) {
$log = $this->output_diagnostic_info(false);
$url = parse_url(home_url());
$host = sanitize_file_name($url['host']);
$filename = sprintf('%s-diagnostic-log-%s.txt', $host, date('YmdHis'));
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . strlen($log));
header('Content-Disposition: attachment; filename=' . $filename);
echo $log;
exit;
}
}