summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
authorAnton Skorokhod <anton@nsl.cz>2017-02-02 04:51:19 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-02 11:51:19 +0800
commit79ab69fe30b9e7779186c1ffde48e5186a0f578d (patch)
tree6f72ce604be8e890e2506bb123cc04de1e74a1e5 /models/webhook.go
parent081485ecfddc88a05fdea0b0230672271658c086 (diff)
downloadgitea-79ab69fe30b9e7779186c1ffde48e5186a0f578d.tar.gz
gitea-79ab69fe30b9e7779186c1ffde48e5186a0f578d.zip
Add X-GitHub-* headers for webhook to get clubhouse.io integration working (#809)
Diffstat (limited to 'models/webhook.go')
-rw-r--r--models/webhook.go2
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 {