pub fn content_type_equals(type1: &str, type2: &str) -> bool