Skip to content

Commit

Permalink
Merge pull request #1689 from nextcloud/bugfix/fetch-content-type
Browse files Browse the repository at this point in the history
Use text/plain as content type for fetching the document
  • Loading branch information
juliusknorr authored Jun 29, 2021
2 parents f798dbe + 751ea29 commit 00aca97
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 00aca97

Please sign in to comment.