From 5d94590cee2b6d4733d4d1c788a882f67d2ae75d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 30 Jul 2019 10:44:44 +0200 Subject: [PATCH] Have the OCSBaseResponse call the parent constructor Signed-off-by: Roeland Jago Douma --- lib/private/AppFramework/OCS/BaseResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/AppFramework/OCS/BaseResponse.php b/lib/private/AppFramework/OCS/BaseResponse.php index b27784cfcf2..90ea084dd99 100644 --- a/lib/private/AppFramework/OCS/BaseResponse.php +++ b/lib/private/AppFramework/OCS/BaseResponse.php @@ -57,6 +57,8 @@ abstract class BaseResponse extends Response { $statusMessage = null, $itemsCount = null, $itemsPerPage = null) { + parent::__construct(); + $this->format = $format; $this->statusMessage = $statusMessage; $this->itemsCount = $itemsCount; @@ -69,7 +71,6 @@ abstract class BaseResponse extends Response { $this->setETag($dataResponse->getETag()); $this->setLastModified($dataResponse->getLastModified()); $this->setCookies($dataResponse->getCookies()); - $this->setContentSecurityPolicy(new EmptyContentSecurityPolicy()); if ($format === 'json') { $this->addHeader( -- 2.39.5