From 87678426442b51c08fd5d6ba8a72ae508e4617d6 Mon Sep 17 00:00:00 2001 From: Jeff Stein Date: Mon, 24 Feb 2020 22:02:43 -0800 Subject: [PATCH] Set correct content_type value for Gogs/Gitea webhooks (#9504) The content_type value was defaulting to the string value of the ContentType, not the integer value as expected by the backend. --- 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 ff52158cb385a..6400c9b400a7f 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 203a0a7954914..7a40146163882 100644 --- a/templates/repo/settings/webhook/gogs.tmpl +++ b/templates/repo/settings/webhook/gogs.tmpl @@ -9,7 +9,7 @@