diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-16 16:43:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 16:43:32 +0200 |
commit | 29d78eaf803957ab8df232e435d9d0ad1fc2741a (patch) | |
tree | 15f48602b108ca3cb9c3c70386188a22b7869eb4 /lib/public/AppFramework/Http/FileDisplayResponse.php | |
parent | 34aa51f126bba2425a1c9b71525a093f25e2b08e (diff) | |
parent | 7276735eb423ed126333923bb921d9d4bef16f07 (diff) | |
download | nextcloud-server-29d78eaf803957ab8df232e435d9d0ad1fc2741a.tar.gz nextcloud-server-29d78eaf803957ab8df232e435d9d0ad1fc2741a.zip |
Merge pull request #14952 from nextcloud/enh/14179/api_csp
Set empty CSP by default
Diffstat (limited to 'lib/public/AppFramework/Http/FileDisplayResponse.php')
-rw-r--r-- | lib/public/AppFramework/Http/FileDisplayResponse.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php index ab23701f893..2d2dd29e6a1 100644 --- a/lib/public/AppFramework/Http/FileDisplayResponse.php +++ b/lib/public/AppFramework/Http/FileDisplayResponse.php @@ -45,6 +45,8 @@ class FileDisplayResponse extends Response implements ICallbackResponse { */ public function __construct($file, $statusCode=Http::STATUS_OK, $headers=[]) { + parent::__construct(); + $this->file = $file; $this->setStatus($statusCode); $this->setHeaders(array_merge($this->getHeaders(), $headers)); |