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:39 +0300
committerGitHub <noreply@github.com>2021-06-29 12:13:39 +0300
commitb0a082fd2549daec7ee6c9d342789e9530d6b44d (patch)
treecd648f1ae99da95148ec5852b4af7b0063bfd684 /lib/Service
parent6c22761ac01f4ea12ecea55ad6cb2b72b604183c (diff)
parent5caed780684d8cf5f3666dc0fc0e0859f1686c82 (diff)
Merge pull request #1693 from nextcloud/backport/1689/stable19
[stable19] Use text/plain as content type for fetching the document
Diffstat (limited to 'lib/Service')
-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 bae813649..4244127e2 100644
--- a/lib/Service/ApiService.php
+++ b/lib/Service/ApiService.php
@@ -118,7 +118,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();
}