diff options
author | techknowlogick <matti@mdranta.net> | 2019-05-15 08:01:53 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-15 20:01:53 +0800 |
commit | 5fb1ad70113d3272232c266b4ff58e9f7f646594 (patch) | |
tree | 6264cc7cba7fbff0d12b638764d4f77d07db6707 /templates | |
parent | 710245e81e0d65c72231dbb3b5c9f860cdc71899 (diff) | |
download | gitea-5fb1ad70113d3272232c266b4ff58e9f7f646594.tar.gz gitea-5fb1ad70113d3272232c266b4ff58e9f7f646594.zip |
Webhook Logs show proper HTTP Method, and allow change HTTP method in form (#6953)
* Fix #6951 - logs show proper HTTP Method, and allow change HTTP method
in form
* enforce POST method for webhook
* set default if method is empty
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/webhook/history.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl index 7f85c702b5..577f357720 100644 --- a/templates/repo/settings/webhook/history.tmpl +++ b/templates/repo/settings/webhook/history.tmpl @@ -45,7 +45,7 @@ {{if .RequestInfo}} <h5>{{$.i18n.Tr "repo.settings.webhook.headers"}}</h5> <pre class="raw"><strong>Request URL:</strong> {{.URL}} -<strong>Request method:</strong> POST +<strong>Request method:</strong> {{if .HTTPMethod}}{{.HTTPMethod}}{{else}}POST{{end}} {{ range $key, $val := .RequestInfo.Headers }}<strong>{{$key}}:</strong> {{$val}} {{end}}</pre> <h5>{{$.i18n.Tr "repo.settings.webhook.payload"}}</h5> |