From 151a3f969fb4a2b9d930dcc7d08ce08750647db2 Mon Sep 17 00:00:00 2001 From: rintisch Date: Wed, 19 Aug 2020 11:05:29 +0200 Subject: [PATCH] Fix `saveToOutput` of PdfService. Closes #7. --- Classes/Service/PdfService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Service/PdfService.php b/Classes/Service/PdfService.php index 52ed439..71fd045 100644 --- a/Classes/Service/PdfService.php +++ b/Classes/Service/PdfService.php @@ -74,13 +74,13 @@ public function saveToOutput(string $fileName) header('Pragma: no-cache', true); header('Expires: 0', true); header('Cache-Control: must-revalidate, post-check=0, pre-check=0', true); - header('Cache-Control :private'); + header('Cache-Control: private'); header('Content-Type: application/pdf', true); $agent = strtolower(GeneralUtility::getIndpEnv('HTTP_USER_AGENT')); $dispo = (strpos($agent, 'win') !== false && strpos($agent, 'msie') !== false) ? '' : 'attachment; '; - header('Content-Transfer-Encodin :binary', true); + header('Content-Transfer-Encoding: binary', true); header('Content-Disposition: ' . $dispo . 'filename="' . $fileName . '"', true); header('Content-Length: ' . filesize($absoluteFilePath), true);