diff options
author | Unknwon <u@gogs.io> | 2015-10-26 09:16:24 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-26 09:16:24 -0400 |
commit | b9f5def5dc177e683c6c2946498bd2eabb82d16a (patch) | |
tree | 932aa33b4d7d433ed9a76580b6c824bc67e5da25 /cmd/serve.go | |
parent | 87c3c8172a8596d903e9c6ab6c9619e84dcf6413 (diff) | |
download | gitea-b9f5def5dc177e683c6c2946498bd2eabb82d16a.tar.gz gitea-b9f5def5dc177e683c6c2946498bd2eabb82d16a.zip |
fix insecure tls when trigger task
Diffstat (limited to 'cmd/serve.go')
-rw-r--r-- | cmd/serve.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/serve.go b/cmd/serve.go index 5f0362744b..b99ab8fcd6 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -5,6 +5,7 @@ package cmd import ( + "crypto/tls" "fmt" "os" "os/exec" @@ -219,7 +220,9 @@ func runServ(c *cli.Context) { strings.TrimPrefix(task.RefName, "refs/heads/") log.GitLogger.Trace("Trigger task: %s", reqURL) - resp, err := httplib.Head(reqURL).Response() + resp, err := httplib.Head(reqURL).SetTLSClientConfig(&tls.Config{ + InsecureSkipVerify: true, + }).Response() if err == nil { resp.Body.Close() if resp.StatusCode/100 != 2 { |