static const char xmsg[] = "Mime/Type";
int http_req_content_type(Httpd_req_data *req){  const Vstr_base *vs1 = NULL;  size_t     pos = 0;  size_t     len = 0;  if (req->content_type_vs1) /* manually set */    return (TRUE);  mime_types_match(req->policy->mime_types,                   req->fname, 1, req->fname->len, &vs1, &pos, &len);  if (!len)  {    req->parse_accept = FALSE;    return (TRUE);  }    if ((vstr_export_chr(vs1, pos) == '/') && (len > 2) &&      (vstr_export_chr(vs1, vstr_sc_poslast(pos, len)) == '/'))  {    size_t num_len = 1;    len -= 2;    ++pos;    req->user_return_error_code = TRUE;    req->direct_filename = FALSE;    switch (vstr_parse_uint(vs1, pos, len, 0, &num_len, NULL))    {      case 400: if (num_len == len) HTTPD_ERR_RET(req, 400, FALSE);      case 403: if (num_len == len) HTTPD_ERR_RET(req, 403, FALSE);      case 404: if (num_len == len) HTTPD_ERR_RET(req, 404, FALSE);      case 410: if (num_len == len) HTTPD_ERR_RET(req, 410, FALSE);      case 500: if (num_len == len) HTTPD_ERR_RET(req, 500, FALSE);      case 503: if (num_len == len) HTTPD_ERR_RET(req, 503, FALSE);              default: /* just ignore any other content */        req->user_return_error_code = FALSE;        return (TRUE);    }  }  req->content_type_vs1 = vs1;  req->content_type_pos = pos;  req->content_type_len = len;  return (TRUE);}