Преглед на файлове

Add content type header

Alan Lam преди 7 години
родител
ревизия
aa6d7a0e5e
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;
 }