diff --git a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs index 78142ca5759bb..4012b737cf69a 100644 --- a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs +++ b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClient.cs @@ -207,7 +207,6 @@ protected void InitializeHttpClient(HttpClientHandler httpClientHandler, params FirstMessageHandler = currentHandler; HttpClient = newClient; Type type = this.GetType(); - //setting userAgentBelow is removed because now the client can set it using SetUserAgent method HttpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(type.FullName, GetClientVersion())); }