summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/DownloadResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Http/DownloadResponse.php')
-rw-r--r--lib/public/AppFramework/Http/DownloadResponse.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/DownloadResponse.php b/lib/public/AppFramework/Http/DownloadResponse.php
index 46f318d9b82..774a6287cb2 100644
--- a/lib/public/AppFramework/Http/DownloadResponse.php
+++ b/lib/public/AppFramework/Http/DownloadResponse.php
@@ -30,7 +30,7 @@ namespace OCP\AppFramework\Http;
* Prompts the user to download the a file
* @since 7.0.0
*/
-class DownloadResponse extends \OCP\AppFramework\Http\Response {
+class DownloadResponse extends Response {
private $filename;
private $contentType;
@@ -42,6 +42,8 @@ class DownloadResponse extends \OCP\AppFramework\Http\Response {
* @since 7.0.0
*/
public function __construct($filename, $contentType) {
+ parent::__construct();
+
$this->filename = $filename;
$this->contentType = $contentType;