Add user-agent for azure blob requests (#6002)

This commit is contained in:
Krishna Srinivas 2018-06-01 15:44:48 -07:00 committed by kannappanr
parent c22b9d5d4d
commit 69b9d6fbee

View File

@ -160,6 +160,7 @@ func (g *Azure) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, erro
if err != nil {
return &azureObjects{}, err
}
c.AddToUserAgent(fmt.Sprintf("APN/1.0 Minio/1.0 Minio/%s", minio.Version))
c.HTTPClient = &http.Client{Transport: minio.NewCustomHTTPTransport()}
return &azureObjects{