Merge pull request #41 from yacloud-io/master

Support making request with proxy
This commit is contained in:
Matej Kramny
2016-07-27 16:30:15 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
gin-bin
example.config.local.json
example.config.local.json
.idea

View File

@@ -21,6 +21,7 @@ func (monitor *CachetMonitor) makeRequest(requestType string, url string, reqBod
if monitor.InsecureAPI == true {
client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: http.ProxyFromEnvironment,
}
}