We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02fe41 commit 715fa6eCopy full SHA for 715fa6e
src/DOMPDFModule/View/Strategy/PdfStrategy.php
@@ -117,10 +117,10 @@ public function injectResponse(ViewEvent $e)
117
118
$response = $e->getResponse();
119
$response->setContent($result);
120
- $response->headers()->addHeaderLine('content-type', 'application/pdf');
+ $response->getHeaders()->addHeaderLine('content-type', 'application/pdf');
121
122
if ($renderer->getFileName()) {
123
- $response->headers()->addHeaderLine(
+ $response->getHeaders()->addHeaderLine(
124
'Content-Disposition',
125
'attachment; filename=' . $renderer->getFileName());
126
}
0 commit comments