summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-07-30 10:44:44 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-08 09:52:20 +0200
commit5d94590cee2b6d4733d4d1c788a882f67d2ae75d (patch)
treee1357fbd2cf31a086dbf6abdad694eee1b7977f3 /lib
parentb42b26eceb4a2d6aee3c844d3bf057df1d14a77a (diff)
downloadnextcloud-server-5d94590cee2b6d4733d4d1c788a882f67d2ae75d.tar.gz
nextcloud-server-5d94590cee2b6d4733d4d1c788a882f67d2ae75d.zip
Have the OCSBaseResponse call the parent constructor
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/OCS/BaseResponse.php3
1 files changed, 2 insertions, 1 deletions
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(