1
Fork 0

webhook: matrix use v3 endpoint and drop headers

This commit is contained in:
oliverpool 2024-04-12 09:53:12 +02:00
parent 99830a40a1
commit 94dd22a784
3 changed files with 5 additions and 6 deletions

View file

@ -152,7 +152,6 @@ func TestWebhookDeliverHookTask(t *testing.T) {
case "/webhook/6db5dc1e282529a8c162c7fe93dd2667494eeb51":
// Version 2
assert.Equal(t, "push", r.Header.Get("X-GitHub-Event"))
assert.Equal(t, "application/json", r.Header.Get("Content-Type"))
body, err := io.ReadAll(r.Body)
assert.NoError(t, err)