diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-13 00:41:21 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-13 00:41:21 +0300 |
commit | 8ab0443f67a4732b2a1a6dcacb991c18c2eb884c (patch) | |
tree | d1e1ab951143caaff32bb879881ad87f6c360940 /lib | |
parent | 5be86b5e6141c4b819b2f776938f5f2cb1ecece1 (diff) |
Use proper response
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/PublicFileHandlingController.php | 2 |
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"'] |