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 /modules/httplib | |
parent | 87c3c8172a8596d903e9c6ab6c9619e84dcf6413 (diff) | |
download | gitea-b9f5def5dc177e683c6c2946498bd2eabb82d16a.tar.gz gitea-b9f5def5dc177e683c6c2946498bd2eabb82d16a.zip |
fix insecure tls when trigger task
Diffstat (limited to 'modules/httplib')
-rw-r--r-- | modules/httplib/httplib.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/httplib/httplib.go b/modules/httplib/httplib.go index a731ddcce2..ff03195c8f 100644 --- a/modules/httplib/httplib.go +++ b/modules/httplib/httplib.go @@ -50,7 +50,7 @@ func SetDefaultSetting(setting Settings) { } // return *Request with specific method -func newBeegoRequest(url, method string) *Request { +func newRequest(url, method string) *Request { var resp http.Response req := http.Request{ Method: method, @@ -64,27 +64,27 @@ func newBeegoRequest(url, method string) *Request { // Get returns *Request with GET method. func Get(url string) *Request { - return newBeegoRequest(url, "GET") + return newRequest(url, "GET") } // Post returns *Request with POST method. func Post(url string) *Request { - return newBeegoRequest(url, "POST") + return newRequest(url, "POST") } // Put returns *Request with PUT method. func Put(url string) *Request { - return newBeegoRequest(url, "PUT") + return newRequest(url, "PUT") } // Delete returns *Request DELETE method. func Delete(url string) *Request { - return newBeegoRequest(url, "DELETE") + return newRequest(url, "DELETE") } // Head returns *Request with HEAD method. func Head(url string) *Request { - return newBeegoRequest(url, "HEAD") + return newRequest(url, "HEAD") } type Settings struct { |