diff options
author | Anton Skorokhod <anton@nsl.cz> | 2017-02-02 04:51:19 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-02 11:51:19 +0800 |
commit | 79ab69fe30b9e7779186c1ffde48e5186a0f578d (patch) | |
tree | 6f72ce604be8e890e2506bb123cc04de1e74a1e5 | |
parent | 081485ecfddc88a05fdea0b0230672271658c086 (diff) | |
download | gitea-79ab69fe30b9e7779186c1ffde48e5186a0f578d.tar.gz gitea-79ab69fe30b9e7779186c1ffde48e5186a0f578d.zip |
Add X-GitHub-* headers for webhook to get clubhouse.io integration working (#809)
-rw-r--r-- | models/webhook.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/webhook.go b/models/webhook.go index 4dd10b0c79..20303916c5 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 { |