From 79ab69fe30b9e7779186c1ffde48e5186a0f578d Mon Sep 17 00:00:00 2001 From: Anton Skorokhod Date: Thu, 2 Feb 2017 04:51:19 +0100 Subject: [PATCH] Add X-GitHub-* headers for webhook to get clubhouse.io integration working (#809) --- models/webhook.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/webhook.go b/models/webhook.go index 4dd10b0c7..20303916c 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -538,6 +538,8 @@ func (t *HookTask) deliver() { req := httplib.Post(t.URL).SetTimeout(timeout, timeout). Header("X-Gogs-Delivery", t.UUID). Header("X-Gogs-Event", string(t.EventType)). + Header("X-GitHub-Delivery", t.UUID). + Header("X-GitHub-Event", string(t.EventType)). SetTLSClientConfig(&tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify}) switch t.ContentType {