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 e7dcbee067afe95bf13cbe49a9394b540d362e00
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