Skip to content

Commit 00aca97

Browse files
authored
Merge pull request #1689 from nextcloud/bugfix/fetch-content-type
Use text/plain as content type for fetching the document
2 parents f798dbe + 751ea29 commit 00aca97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)