diff options
author | Sashi20 | 2020-07-17 14:56:01 +0530 |
---|---|---|
committer | Sashi20 | 2020-07-17 14:56:01 +0530 |
commit | 5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6 (patch) | |
tree | b7796c1f1544bb2e27afbde0ad0befbf080c3dc8 /pdf/cert_new.inc | |
parent | 8d321a238d07e642966ac3dc904e957d88bc2b11 (diff) | |
download | dwsim_flowsheet-5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6.tar.gz dwsim_flowsheet-5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6.tar.bz2 dwsim_flowsheet-5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6.zip |
Modify content type header to download certificate
Diffstat (limited to 'pdf/cert_new.inc')
-rwxr-xr-x | pdf/cert_new.inc | 3 |
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)); |