From 2cb3db2d204b6bc446b97fe4f617770e4542d1e9 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 17 May 2020 20:08:59 +0100 Subject: [PATCH] Set correct content_type value for Gogs/Gitea webhooks (#9504) (#10456) (#11461) The content_type value was defaulting to the string value of the ContentType, not the integer value as expected by the backend. Co-authored-by: Jeff Stein --- templates/repo/settings/webhook/gitea.tmpl | 80 +++++++++++----------- templates/repo/settings/webhook/gogs.tmpl | 2 +- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/templates/repo/settings/webhook/gitea.tmpl b/templates/repo/settings/webhook/gitea.tmpl index ff52158cb3..6400c9b400 100644 --- a/templates/repo/settings/webhook/gitea.tmpl +++ b/templates/repo/settings/webhook/gitea.tmpl @@ -1,40 +1,40 @@ -{{if eq .HookType "gitea"}} -

{{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/en-us/webhooks/" | Str2html}}

-
- {{.CsrfTokenHtml}} -
- - -
-
- - -
-
- - -
- -
- - -
- {{template "repo/settings/webhook/settings" .}} -
-{{end}} +{{if eq .HookType "gitea"}} +

{{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/en-us/webhooks/" | Str2html}}

+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+ {{template "repo/settings/webhook/settings" .}} +
+{{end}} diff --git a/templates/repo/settings/webhook/gogs.tmpl b/templates/repo/settings/webhook/gogs.tmpl index 203a0a7954..7a40146163 100644 --- a/templates/repo/settings/webhook/gogs.tmpl +++ b/templates/repo/settings/webhook/gogs.tmpl @@ -9,7 +9,7 @@