Skip to content

Commit 639e2a7

Browse files
authored
Merge pull request #1691 from nextcloud/backport/1689/stable21
[stable21] Use text/plain as content type for fetching the document
2 parents 72a6ffa + e7dcbee commit 639e2a7

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
@@ -114,7 +114,7 @@ public function fetch($documentId, $sessionId, $sessionToken) {
114114
} catch (NotFoundException $e) {
115115
return new NotFoundResponse();
116116
}
117-
return new FileDisplayResponse($file);
117+
return new FileDisplayResponse($file, 200, ['Content-Type' => 'text/plain']);
118118
}
119119
return new NotFoundResponse();
120120
}

0 commit comments

Comments
 (0)