Skip to content

Commit

Permalink
fix: Proper return type for empty files
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Nov 29, 2024
1 parent 09c837e commit 2de90aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private function setFederationFileInfo(Wopi $wopi, $response) {
#[NoCSRFRequired]
#[PublicPage]
#[FrontpageRoute(verb: 'GET', url: 'wopi/files/{fileId}/contents')]
public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse {
public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse|Http\Response {
[$fileId, , $version] = Helper::parseFileId($fileId);

try {
Expand Down

0 comments on commit 2de90aa

Please sign in to comment.