Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use text/plain as content type for fetching the document
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed Jun 29, 2021
commit 501b9c3d62674a8a718ea78e44b2846180451ec1
2 changes: 1 addition & 1 deletion lib/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down