Skip to content

Commit 048037b

Browse files
Merge pull request nextcloud#57495 from nextcloud/fix/noid/no-data-response
fix(ocm): empty response
2 parents 408f9e8 + 42d745e commit 048037b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/cloud_federation_api/lib/Controller/OCMRequestController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use OCP\AppFramework\Http\Attribute\BruteForceProtection;
1616
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
1717
use OCP\AppFramework\Http\Attribute\PublicPage;
18-
use OCP\AppFramework\Http\DataResponse;
1918
use OCP\AppFramework\Http\JSONResponse;
2019
use OCP\AppFramework\Http\Response;
2120
use OCP\EventDispatcher\IEventDispatcher;
@@ -83,6 +82,6 @@ public function manageOCMRequests(string $ocmPath): Response {
8382
);
8483
$this->eventDispatcher->dispatchTyped($event);
8584

86-
return $event->getResponse() ?? new DataResponse('', Http::STATUS_NOT_FOUND);
85+
return $event->getResponse() ?? new Response(Http::STATUS_NOT_FOUND);
8786
}
8887
}

0 commit comments

Comments
 (0)