Microsoft.Protocols.TestSuites.Common.Common.GetContentTypeHeader C# (CSharp) Method

GetContentTypeHeader() public static method

Get the Content-Type header.
public static GetContentTypeHeader ( string headerValue ) : string
headerValue string The string included charset and type in the Content-Type header.
return string
        public static string GetContentTypeHeader(string headerValue)
        {
            string[] headervalues = headerValue.Split(';');
            if (headervalues.Length > 0)
            {
                return headervalues[0];
            }

            return string.Empty;
        }
Common