mirror of https://github.com/hashicorp/packer
Merge pull request #7226 from hashicorp/fix_6549
Explicitly set ProxyFromEnvironment in httpclients when creating an aws sessionpull/7236/head
commit
839a7658a6
@ -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