Merge pull request #1106 from letusfly85/add_proxy_info2skip_verify_mode

add proxy info to http.Transport
This commit is contained in:
Brad Rydzewski 2015-07-22 23:34:40 -07:00
commit 2939e1356d

View file

@ -25,6 +25,7 @@ func NewClient(uri, token string, skipVerify bool) *github.Client {
// self-signed certificates. // self-signed certificates.
if skipVerify { if skipVerify {
t.Transport = &http.Transport{ t.Transport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
} }
} }