/// <summary> /// Converts content type enum value to HTTP content-type header value /// </summary> public static string ContentTypeToString(MimeContentType type) { if (type == MimeContentType.application) { return("application/octet-stream"); } return(type.ToString().Replace('_', '/')); }
/// <summary> /// Converts content type enum value to HTTP content-type header value /// </summary> public static string ContentTypeToString(MimeContentType type) { if (type == MimeContentType.application) return "application/octet-stream"; return type.ToString().Replace('_', '/'); }