[module.professor.pdf] Added extension '.pdf'
This commit is contained in:
parent
be1e5b0a4d
commit
20a4f86d5c
|
@ -636,7 +636,7 @@ use \error\core\Error;
|
|||
|
||||
/* (5) Script qui écrira les headers */
|
||||
foreach($returned['headers'] as $header=>$value)
|
||||
fwrite($taret_file, "header(\"$header: $value\");".PHP_EOL);
|
||||
fwrite($taret_file, 'header(\''.$header.': '.$value.'\');'.PHP_EOL);
|
||||
|
||||
/* (6) Script qui écrira le contenu du buffer */
|
||||
chmod($buffer_fname, 0775);
|
||||
|
|
|
@ -148,7 +148,7 @@ class pdfController{
|
|||
$headers = [
|
||||
// 'Content-Description' => 'File Transfer',
|
||||
'Content-Transfer-Encoding' => 'binary',
|
||||
'Content-Disposition' => 'attachment; filename=\"'.$title.'\"',
|
||||
'Content-Disposition' => 'attachment; filename="'.$title.'"',
|
||||
'Cache-Control' => 'public, must-revalidate, max-age=0',
|
||||
'Pragma' => 'public',
|
||||
'X-Generator' => 'mPDF',
|
||||
|
|
Loading…
Reference in New Issue