From 5caed780684d8cf5f3666dc0fc0e0859f1686c82 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: 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(-) (limited to 'lib/Service') diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index bae813649..4244127e2 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -118,7 +118,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(); } -- cgit v1.2.3