mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 16:39:59 -04:00
fix(ocm): Correctly track OCM requests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
27f1bb1599
commit
f4f93ed281
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