fix: rename webhook event header to plural

This commit is contained in:
Torsten Dittmann
2022-05-10 14:14:26 +02:00
parent 8012de5c4d
commit 04eeb8856c
+1 -1
View File
@@ -64,7 +64,7 @@ class WebhooksV1 extends Worker
'Content-Type: application/json',
'Content-Length: ' . \strlen($payload),
'X-' . APP_NAME . '-Webhook-Id: ' . $webhook->getId(),
'X-' . APP_NAME . '-Webhook-Event: ' . implode(', ', $events),
'X-' . APP_NAME . '-Webhook-Events: ' . implode(',', $events),
'X-' . APP_NAME . '-Webhook-Name: ' . $webhook->getAttribute('name', ''),
'X-' . APP_NAME . '-Webhook-User-Id: ' . $user->getId(),
'X-' . APP_NAME . '-Webhook-Project-Id: ' . $project->getId(),