From 751ea299b700fd9b5f64919933e4b161f6d66371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 28 Jun 2021 13:38:39 +0200 Subject: [PATCH] Use text/plain as content type for fetching the document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/ApiService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index b7148c6d124..5691734ff5b 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -114,7 +114,7 @@ public function fetch($documentId, $sessionId, $sessionToken) { } catch (NotFoundException $e) { return new NotFoundResponse(); } - return new FileDisplayResponse($file); + return new FileDisplayResponse($file, 200, ['Content-Type' => 'text/plain']); } return new NotFoundResponse(); }