diff options
author | Simon <simon@hilchenba.ch> | 2019-05-05 20:09:02 +0200 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-05-05 14:09:02 -0400 |
commit | a2a006a5d5a542c5c31bdce4647d2401eab88475 (patch) | |
tree | a71588a2291a5a5d2f9419208990fa5207593b77 /routers/repo/webhook.go | |
parent | 55a8e12d85bd59314416bb026e84d258004a5071 (diff) | |
download | gitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.tar.gz gitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.zip |
Add GET requests to webhook (#6771)
* Add GET requests to webhook
* make fmt
* Handle invalid http method on webhook
* Uppercase http method in webhook
* Rename v85.go to v86.go
* make fmt
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r-- | routers/repo/webhook.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 6cf636f247..2e76cbfe02 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -176,6 +176,7 @@ func WebHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) { w := &models.Webhook{ RepoID: orCtx.RepoID, URL: form.PayloadURL, + HTTPMethod: form.HTTPMethod, ContentType: contentType, Secret: form.Secret, HookEvent: ParseHookEvent(form.WebhookForm), |