/* Given a content type string that may contain optional parameters, return the parameter string, if any, otherwise return NULL. This also has the side effect of null terminating the content type part of the original string.  */
static gchar* spdy_parse_content_type(gchar *content_type)
/* Given a content type string that may contain optional parameters, return the parameter string, if any, otherwise return NULL. This also has the side effect of null terminating the content type part of the original string.  */
static gchar* spdy_parse_content_type(gchar *content_type)
{
    *cp = g_ascii_tolower(*cp);
    ++cp;
  }
  if (*cp == '\0') {
    cp = NULL;
  }
  if (cp != NULL) {
    *cp++ = '\0';
    while (*cp == ';' || g_ascii_isspace(*cp)) {
      ++cp;
    }
    if (*cp != '\0') {
      return cp;
    }
  }
  return NULL;
}