Skip to content

Commit 715fa6e

Browse files
author
Raymond Kolbe
committed
Updated code to work with upcoming ZF2 beta 5.
1 parent b02fe41 commit 715fa6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DOMPDFModule/View/Strategy/PdfStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ public function injectResponse(ViewEvent $e)
117117

118118
$response = $e->getResponse();
119119
$response->setContent($result);
120-
$response->headers()->addHeaderLine('content-type', 'application/pdf');
120+
$response->getHeaders()->addHeaderLine('content-type', 'application/pdf');
121121

122122
if ($renderer->getFileName()) {
123-
$response->headers()->addHeaderLine(
123+
$response->getHeaders()->addHeaderLine(
124124
'Content-Disposition',
125125
'attachment; filename=' . $renderer->getFileName());
126126
}

0 commit comments

Comments
 (0)