mirror of https://github.com/hashicorp/packer
parent
904c4b9adb
commit
c63b54a1e7
@ -0,0 +1,14 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HttpClientWithEnvironmentProxy() *http.Client {
|
||||
httpClient := &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
}
|
||||
return httpClient
|
||||
}
|
||||
Loading…
Reference in new issue