summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/FileDisplayResponse.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-04-03 18:42:34 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-04-16 14:09:39 +0200
commit7276735eb423ed126333923bb921d9d4bef16f07 (patch)
tree4131f2b8665f2e5066eb84d9ef39691709accc42 /lib/public/AppFramework/Http/FileDisplayResponse.php
parent4e88cd3aae0b1c8e662197dd10e2e65ffe8cf489 (diff)
downloadnextcloud-server-7276735eb423ed126333923bb921d9d4bef16f07.tar.gz
nextcloud-server-7276735eb423ed126333923bb921d9d4bef16f07.zip
Set empty CSP by default
For #14179 By default responses should have the strictest (and simplest) CSP possible. Only template responses should require an actual CSP. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework/Http/FileDisplayResponse.php')
-rw-r--r--lib/public/AppFramework/Http/FileDisplayResponse.php2
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));