Lines Matching defs:ct
259 int ne_get_content_type(ne_request *req, ne_content_type *ct)
269 ct->value = ne_strdup(value);
271 stype = strchr(ct->value, '/');
274 ct->type = ct->value;
275 ct->charset = NULL;
289 ct->charset = ne_shave(tok+8, "\"\'");
297 ct->subtype = ne_shave(stype, " \t");
299 if (ct->charset == NULL && ne_strcasecmp(ct->type, "text") == 0) {
301 if (ne_strcasecmp(ct->subtype, "xml") == 0)
302 ct->charset = "us-ascii";
305 ct->charset = "ISO-8859-1";