use DefaultTransport

This commit is contained in:
r_takaishi 2017-05-24 16:19:30 +09:00
parent 67ce2da59e
commit 37e6539bff
1 changed files with 4 additions and 2 deletions

View File

@ -125,8 +125,10 @@ func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error {
tls_config.Certificates = []tls.Certificate{cert}
}
transport := &http.Transport{TLSClientConfig: tls_config}
client.HTTPClient.Transport = transport
var transport http.Transport = *http.DefaultTransport.(*http.Transport)
transport.TLSClientConfig = tls_config
client.HTTPClient.Transport = &transport
// Auth
err = openstack.Authenticate(client, ao)