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-04-13 00:41:21 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-13 00:41:21 +0300
commit8ab0443f67a4732b2a1a6dcacb991c18c2eb884c (patch)
treed1e1ab951143caaff32bb879881ad87f6c360940 /lib
parent5be86b5e6141c4b819b2f776938f5f2cb1ecece1 (diff)
Use proper response
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PublicFileHandlingController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PublicFileHandlingController.php b/lib/Controller/PublicFileHandlingController.php
index 6451845..eca32b7 100644
--- a/lib/Controller/PublicFileHandlingController.php
+++ b/lib/Controller/PublicFileHandlingController.php
@@ -126,7 +126,7 @@ class PublicFileHandlingController extends Controller{
$fileContents = mb_substr($fileContents, 0, $range);
}
- return new DataResponse(
+ return new Http\DataDisplayResponse(
$fileContents,
Http::STATUS_OK,
['Content-Type' => 'text/plain; charset="utf-8"']