Procházet zdrojové kódy

Add content type header

Alan Lam před 7 roky
rodič
revize
aa6d7a0e5e
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      controllers/test_invoice.php

+ 1 - 0
controllers/test_invoice.php

@@ -42,6 +42,7 @@ $directory = $test->getDirectory();
 $pdf_filepath = $directory . "/tester_invoice.pdf";
 if($test->hasTesterInvoicePDF()) {
 	http::setDownloadHeaders($download_filename);
+	header("Content-Type: application/pdf");
 	readfile($pdf_filepath);
 	exit;
 }