Skip to content

Commit 42d745e

Browse files
committed
fix(ocm): empty response
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 89166cb commit 42d745e

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)