From 3ad1160464d774869c689fa3ba684ca3d43c2310 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 11 Nov 2013 13:25:42 +0000 Subject: [PATCH] Misc --- paste/download.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paste/download.php b/paste/download.php index 25d564e..380df14 100644 --- a/paste/download.php +++ b/paste/download.php @@ -22,11 +22,11 @@ function downloadFile($fullPath) { header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); - header("Cache-Control: private",false); // required for certain browsers + header("Cache-Control: private", false); // required for certain browsers header("Content-Type: application/force-download"); header("Content-Disposition: attachment; filename=\"".basename($fullPath)."\";" ); header("Content-Transfer-Encoding: binary"); - header("Content-Length: ".$fsize); + header("Content-Length: " . $fsize); ob_clean(); flush(); readfile($fullPath);