Skip to content

Commit 57e739a

Browse files
committed
Respect http proxy environment variables.
Fixes #55
1 parent bdb1e5f commit 57e739a

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)