mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 11:22:28 -04:00
Merge pull request #59727 from nextcloud/backport/59721/stable33
[stable33] fix(ocm): Correctly track OCM requests
This commit is contained in:
commit
895ae90f80
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@ class OCMRequestController extends Controller {
|
|||
$signedRequest = $this->ocmDiscoveryService->getIncomingSignedRequest();
|
||||
} catch (IncomingRequestException $e) {
|
||||
$this->logger->warning('incoming ocm request exception', ['exception' => $e]);
|
||||
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
|
||||
$response = new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
|
||||
$response->throttle();
|
||||
return $response;
|
||||
}
|
||||
|
||||
// assuming that ocm request contains a json array
|
||||
|
|
|
|||
Loading…
Reference in a new issue