Skip to content

Commit

Permalink
Merge branch 'master' into PHRAS-4023-hcaptcha-in-phraseanet
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaillat authored Feb 29, 2024
2 parents c20aaee + 5d1eb44 commit 2157f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Alchemy/Phrasea/WorkerManager/Worker/WebhookWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function deliverEvent(Client $httpClient, array $thirdPartyApplications,

// make delivery Id as index
$requests[$delivery->getId()] = new Request(
'GET',
'POST',
$uniqueUrl,
['Content-Type' => 'application/json'],
json_encode($data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function deliverEventTest(Client $client, WebhookEvent $event, $payload)

/** @var Request $request */
foreach ($requestResult as $request) {
$this->assertEquals('GET', $request->getMethod());
$this->assertEquals('POST', $request->getMethod());
$this->assertEquals('http://webhook.com/webhook/'."#".$deliveryId, $request->getUri());
$this->assertArrayHasKey('Content-Type', $request->getHeaders());
$this->assertContains('application/json', $request->getHeader('Content-Type'));
Expand Down

0 comments on commit 2157f37

Please sign in to comment.