diff --git a/services/preview/cognitiveservices/v1.0/anomalydetector/client.go b/services/preview/cognitiveservices/v1.0/anomalydetector/client.go index a7f9c10fc8d4..5caaecb3cb6a 100644 --- a/services/preview/cognitiveservices/v1.0/anomalydetector/client.go +++ b/services/preview/cognitiveservices/v1.0/anomalydetector/client.go @@ -25,6 +25,7 @@ package anomalydetector import ( "context" + "crypto/tls" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" @@ -46,7 +47,7 @@ func New(endpoint string) BaseClient { // NewWithoutDefaults creates an instance of the BaseClient client. func NewWithoutDefaults(endpoint string) BaseClient { return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), + Client: autorest.NewClientWithOptions(autorest.ClientOptions{UserAgent: UserAgent(), Renegotiation: tls.RenegotiateFreelyAsClient}), Endpoint: endpoint, } }