diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-06-28 14:38:39 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-06-28 14:38:39 +0300 |
commit | 751ea299b700fd9b5f64919933e4b161f6d66371 (patch) | |
tree | 5938f54a77b3f6280a40d09466ff49e94dadda1e /lib | |
parent | f798dbeb2c33ac90e946e3f4fe677571cc1c4be3 (diff) |
Use text/plain as content type for fetching the document
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ApiService.php | 2 |
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(); } |