Skip to content

Commit b0a082f

Browse files
authored
Merge pull request #1693 from nextcloud/backport/1689/stable19
[stable19] Use text/plain as content type for fetching the document
2 parents 6c22761 + 5caed78 commit b0a082f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/ApiService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function fetch($documentId, $sessionId, $sessionToken) {
118118
} catch (NotFoundException $e) {
119119
return new NotFoundResponse();
120120
}
121-
return new FileDisplayResponse($file);
121+
return new FileDisplayResponse($file, 200, ['Content-Type' => 'text/plain']);
122122
}
123123
return new NotFoundResponse();
124124
}

0 commit comments

Comments
 (0)