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

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-09 16:05:49 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-09 16:05:49 +0300
commit5be86b5e6141c4b819b2f776938f5f2cb1ecece1 (patch)
treee677a1633677ae0621e9cdea4cb5f394a7766b50 /lib
parent9e2a6867b0578e8b106166ebe4506c9a3817eae5 (diff)
Set Content-Type
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PublicFileHandlingController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/PublicFileHandlingController.php b/lib/Controller/PublicFileHandlingController.php
index 42a38bd..6451845 100644
--- a/lib/Controller/PublicFileHandlingController.php
+++ b/lib/Controller/PublicFileHandlingController.php
@@ -128,7 +128,8 @@ class PublicFileHandlingController extends Controller{
return new DataResponse(
$fileContents,
- Http::STATUS_OK
+ Http::STATUS_OK,
+ ['Content-Type' => 'text/plain; charset="utf-8"']
);
}