MCPcopy Create free account
hub / github.com/apache/httpd / response_is_html

Function response_is_html

modules/generators/mod_autoindex.c:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154#define BY_PATH &c_by_path
155
156static APR_INLINE int response_is_html(request_rec *r)
157{
158 char *ctype = ap_field_noparam(r->pool, r->content_type);
159
160 return !ap_cstr_casecmp(ctype, "text/html")
161 || !ap_cstr_casecmp(ctype, "application/xhtml+xml");
162}
163
164/*
165 * This routine puts the standard HTML header at the top of the index page.

Callers 3

emit_headFunction · 0.85
emit_tailFunction · 0.85
find_titleFunction · 0.85

Calls 2

ap_field_noparamFunction · 0.85
ap_cstr_casecmpFunction · 0.85

Tested by

no test coverage detected