From 2973591790c62d33ce7275895a4c2198e1c368c6 Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Sun, 17 Jul 2016 17:19:09 -0700 Subject: [PATCH] Set application type to be correct --- src/Sikofitt/Controller/ResumeControllerProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Sikofitt/Controller/ResumeControllerProvider.php b/src/Sikofitt/Controller/ResumeControllerProvider.php index 5fc57ae..c9772e1 100644 --- a/src/Sikofitt/Controller/ResumeControllerProvider.php +++ b/src/Sikofitt/Controller/ResumeControllerProvider.php @@ -91,7 +91,9 @@ class ResumeControllerProvider implements ControllerProviderInterface ResponseHeaderBag::DISPOSITION_ATTACHMENT, $filename . '.pdf' ); + $response->headers->set('Content-Type', 'application/pdf'); $response->headers->set('Content-Disposition', $disposition); + $response->send(); });