소스 검색

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;
 }