From 5c4b58d9a7bb78a8097c0f0680f2ee66c29d41c6 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 17 Jul 2020 14:56:01 +0530 Subject: Modify content type header to download certificate --- pdf/cert_new.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pdf/cert_new.inc') 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)); -- cgit