Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-06-29 12:13:48 +0300
committerGitHub <noreply@github.com>2021-06-29 12:13:48 +0300
commita4eb89612e24cfa3d8dea416647649ae19ac07f2 (patch)
tree43bede0919e7af7805b27f362bec45efef17cf40 /lib/Service/ApiService.php
parentee75a914de3f2973fc209e3d7bc9394baf53a077 (diff)
parent501b9c3d62674a8a718ea78e44b2846180451ec1 (diff)
Merge pull request #1690 from nextcloud/backport/1689/stable22
[stable22] Use text/plain as content type for fetching the document
Diffstat (limited to 'lib/Service/ApiService.php')
-rw-r--r--lib/Service/ApiService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php
index b7148c6d1..5691734ff 100644
--- a/lib/Service/ApiService.php
+++ b/lib/Service/ApiService.php
@@ -114,7 +114,7 @@ class ApiService {
} catch (NotFoundException $e) {
return new NotFoundResponse();
}
- return new FileDisplayResponse($file);
+ return new FileDisplayResponse($file, 200, ['Content-Type' => 'text/plain']);
}
return new NotFoundResponse();
}