Init HTTP client and transport for azure sdk (#4871)

Fixes segfault
This commit is contained in:
Krishna Srinivas 2017-08-31 17:19:03 -07:00 committed by Dee Koder
parent 61e0b1454a
commit ff8e2b5b4f
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ func newAzureLayer(host string) (GatewayLayer, error) {
if err != nil {
return &azureObjects{}, err
}
c.HTTPClient.Transport = newCustomHTTPTransport()
c.HTTPClient = &http.Client{Transport: newCustomHTTPTransport()}
return &azureObjects{
client: c.GetBlobService(),