From e661cd03218abf3651de688fdb662e2cdc2feef7 Mon Sep 17 00:00:00 2001 From: Jeff Stein Date: Fri, 28 Feb 2020 06:33:52 -0800 Subject: [PATCH] Set correct content_type value for Gogs/Gitea webhooks (#9504) (#10456) 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 ff52158cb..6400c9b40 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 203a0a795..7a4014616 100644 --- a/templates/repo/settings/webhook/gogs.tmpl +++ b/templates/repo/settings/webhook/gogs.tmpl @@ -9,7 +9,7 @@