diff options
author | Sashi20 | 2020-07-24 11:11:35 +0530 |
---|---|---|
committer | Sashi20 | 2020-07-24 11:11:35 +0530 |
commit | 164f6b144d8fe5288f58dbe9103bbadf390ca984 (patch) | |
tree | 97186d6cd721f294bf60f80f5e6d43c3a446a883 /pdf/cert_new.inc | |
parent | fb28bec72a236e43cbe39fab818445d7cc956834 (diff) | |
download | dwsim_flowsheet-164f6b144d8fe5288f58dbe9103bbadf390ca984.tar.gz dwsim_flowsheet-164f6b144d8fe5288f58dbe9103bbadf390ca984.tar.bz2 dwsim_flowsheet-164f6b144d8fe5288f58dbe9103bbadf390ca984.zip |
Update certificate headers
Diffstat (limited to 'pdf/cert_new.inc')
-rwxr-xr-x | pdf/cert_new.inc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc index 8096a5d..d01d724 100755 --- a/pdf/cert_new.inc +++ b/pdf/cert_new.inc @@ -170,21 +170,20 @@ function generate_pdf() header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); - header("Content-Disposition: attachment; filename=" . $filename); - header("Content-Type: application/pdf"); header("Content-Description: File Transfer"); + header("Content-Type: application/pdf"); + header("Content-Disposition: attachment; filename=" . $filename); header("Content-Length: " . filesize($file)); - header("Content-Transfer-Encoding: Binary"); + header("Content-Transfer-Encoding: binary"); header("Expires: 0"); header("Pragma: no-cache"); - header('Content-Type: application/force-download'); - - $fp = fopen($file, "r"); - ob_clean(); flush(); + $fp = fopen($file, "r"); while (!feof($fp)) { - echo fread($fp, filesize($file)); + echo fread($fp, 65536); flush(); + ob_end_flush(); + ob_clean(); } //!feof($fp) fclose($fp); unlink($file); |