static APR_INLINE int response_is_html(request_rec *r)
{
char *ctype = ap_field_noparam(r->pool, r->content_type);
- ap_str_tolower(ctype);
- return !strcmp(ctype, "text/html")
- || !strcmp(ctype, "application/xhtml+xml");
+
+ return !ap_cstr_casecmp(ctype, "text/html")
+ || !ap_cstr_casecmp(ctype, "application/xhtml+xml");
}
/*
if ((type == BY_PATH) && (!ap_is_matchexp(to))) {
p->apply_to = apr_pstrcat(arr->pool, "*", to, NULL);
}
- else if (to) {
- p->apply_to = apr_pstrdup(arr->pool, to);
- }
else {
- p->apply_to = NULL;
+ p->apply_to = apr_pstrdup(arr->pool, to);
}
}