Dev2.Runtime.ServiceModel.WebSources.EnsureContentType C# (CSharp) Method

EnsureContentType() static private method

static private EnsureContentType ( WebClient client ) : void
client System.Net.WebClient
return void
        static void EnsureContentType(WebClient client)
        {
            var contentType = client.Headers["Content-Type"];
            if(string.IsNullOrEmpty(contentType))
            {
                contentType = "application/x-www-form-urlencoded";
            }
            client.Headers["Content-Type"] = contentType;
        }