Skip to content

Commit 3156239

Browse files
authored
Merge pull request #56 from ericfrederich/proxy_fix
Respect http proxy environment variables.
2 parents 40dd232 + 57e739a commit 3156239

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitlab/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ func (c *Config) Client() (interface{}, error) {
3939
tlsConfig.InsecureSkipVerify = true
4040
}
4141

42-
transport := &http.Transport{TLSClientConfig: tlsConfig}
42+
transport := &http.Transport{
43+
Proxy: http.ProxyFromEnvironment,
44+
TLSClientConfig: tlsConfig,
45+
}
4346

4447
httpClient := &http.Client{Transport: transport}
4548

0 commit comments

Comments
 (0)