summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorSashi202020-07-17 15:03:27 +0530
committerGitHub2020-07-17 15:03:27 +0530
commit7dc02f15e2bb531e7f446c8ce0656990519f81f3 (patch)
treeb7796c1f1544bb2e27afbde0ad0befbf080c3dc8 /pdf
parent76979a5cae89e4d9f6ae5a788e8562f49b813c07 (diff)
parent5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6 (diff)
downloaddwsim_flowsheet-7dc02f15e2bb531e7f446c8ce0656990519f81f3.tar.gz
dwsim_flowsheet-7dc02f15e2bb531e7f446c8ce0656990519f81f3.tar.bz2
dwsim_flowsheet-7dc02f15e2bb531e7f446c8ce0656990519f81f3.zip
Merge pull request #42 from Sashi20/drupal_7.x
Modify content type header to download certificate
Diffstat (limited to 'pdf')
-rwxr-xr-xpdf/cert_new.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc
index cca67e7..dd307e1 100755
--- a/pdf/cert_new.inc
+++ b/pdf/cert_new.inc
@@ -170,9 +170,8 @@ function generate_pdf()
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
- header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=" . $filename);
- header("Content-Type: application/octet-stream");
+ header("Content-Type: application/pdf");
header("Content-Type: application/download");
header("Content-Description: File Transfer");
header("Content-Length: " . filesize($file));