Skip to content

Commit bd577d2

Browse files
committed
Make sure to call parent constructor of PicoPageResponse and NotModifiedResponse
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
1 parent 84ec374 commit bd577d2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Http/NotModifiedResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function __construct(Response $originalResponse = null)
4141
{
4242
$this->originalResponse = $originalResponse;
4343

44+
parent::__construct();
4445
$this->setStatus(Http::STATUS_NOT_MODIFIED);
4546

4647
if ($this->originalResponse) {

lib/Http/PicoPageResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function __construct(PicoPage $page)
4343
{
4444
$this->page = $page;
4545

46+
parent::__construct();
47+
4648
$this->addHeader('Content-Disposition', 'inline; filename=""');
4749
$this->setContentSecurityPolicy(new PicoContentSecurityPolicy());
4850

0 commit comments

Comments
 (0)