summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorSashi202020-07-17 17:53:41 +0530
committerSashi202020-07-17 17:53:41 +0530
commit11d26a2d9bc0006c1e527aaed199bdcd969cb484 (patch)
tree83e57589a30e3fdcbd95b0410856485b86436312 /pdf
parent89827712806cc73c12eb364aaf27a7ed5d135950 (diff)
downloaddwsim_flowsheet-11d26a2d9bc0006c1e527aaed199bdcd969cb484.tar.gz
dwsim_flowsheet-11d26a2d9bc0006c1e527aaed199bdcd969cb484.tar.bz2
dwsim_flowsheet-11d26a2d9bc0006c1e527aaed199bdcd969cb484.zip
Remove redundant headers
Diffstat (limited to 'pdf')
-rwxr-xr-xpdf/cert_new.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc
index 702c58a..29e5a77 100755
--- a/pdf/cert_new.inc
+++ b/pdf/cert_new.inc
@@ -172,23 +172,23 @@ function generate_pdf()
header("Cache-Control: public");
header("Content-Disposition: attachment; filename=" . $filename);
header("Content-Type: application/pdf");
- header("Content-Type: application/download");
header("Content-Description: File Transfer");
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();
while (!feof($fp)) {
- echo fread($fp, 65536);
+ echo fread($fp, 1024);
flush();
} //!feof($fp)
fclose($fp);
unlink($file);
- ob_clean();
- flush();
+
//drupal_goto('flowsheeting-project/certificate');
return;
}