aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/hook.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cmd/hook.go')
-rw-r--r--internal/cmd/hook.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/cmd/hook.go b/internal/cmd/hook.go
index 0e9136b0..9b4e2278 100644
--- a/internal/cmd/hook.go
+++ b/internal/cmd/hook.go
@@ -238,9 +238,10 @@ func runHookPostReceive(c *cli.Context) error {
reqURL := fmt.Sprintf("%s%s/%s/tasks/trigger?%s", conf.Server.LocalRootURL, options.RepoUserName, options.RepoName, q.Encode())
log.Trace("Trigger task: %s", reqURL)
- resp, err := httplib.Head(reqURL).SetTLSClientConfig(&tls.Config{
- InsecureSkipVerify: true,
- }).Response()
+ resp, err := httplib.Get(reqURL).
+ SetTLSClientConfig(&tls.Config{
+ InsecureSkipVerify: true,
+ }).Response()
if err == nil {
_ = resp.Body.Close()
if resp.StatusCode/100 != 2 {