Add X-GitHub-* headers for webhook to get clubhouse.io integration working (#809)

tokarchuk/v1.17
Anton Skorokhod 8 years ago committed by Lunny Xiao
parent 081485ecfd
commit 79ab69fe30
  1. 2
      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 {

Loading…
Cancel
Save