summaryrefslogtreecommitdiffstats
path: root/modules/metadata/mod_headers.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2015-11-23 17:46:01 +0100
committerYann Ylavic <ylavic@apache.org>2015-11-23 17:46:01 +0100
commitc80e6b2a34a20a048be8a9bfb663680fcd1598c5 (patch)
treee4bd4d25265f08d64a711267753f514535d2b6aa /modules/metadata/mod_headers.c
parentRevert r1715789: will re-commit without spurious functional changes. (diff)
downloadapache2-c80e6b2a34a20a048be8a9bfb663680fcd1598c5.tar.xz
apache2-c80e6b2a34a20a048be8a9bfb663680fcd1598c5.zip
Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata/mod_headers.c')
-rw-r--r--modules/metadata/mod_headers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/metadata/mod_headers.c b/modules/metadata/mod_headers.c
index 210b2bbb57..a21f71efd0 100644
--- a/modules/metadata/mod_headers.c
+++ b/modules/metadata/mod_headers.c
@@ -789,14 +789,14 @@ static int do_headers_fixup(request_rec *r, apr_table_t *headers,
}
break;
case hdr_set:
- if (!strcasecmp(hdr->header, "Content-Type")) {
+ if (!ap_casecmpstr(hdr->header, "Content-Type")) {
ap_set_content_type(r, process_tags(hdr, r));
}
apr_table_setn(headers, hdr->header, process_tags(hdr, r));
break;
case hdr_setifempty:
if (NULL == apr_table_get(headers, hdr->header)) {
- if (!strcasecmp(hdr->header, "Content-Type")) {
+ if (!ap_casecmpstr(hdr->header, "Content-Type")) {
ap_set_content_type(r, process_tags(hdr, r));
}
apr_table_setn(headers, hdr->header, process_tags(hdr, r));
@@ -813,7 +813,7 @@ static int do_headers_fixup(request_rec *r, apr_table_t *headers,
break;
case hdr_edit:
case hdr_edit_r:
- if (!strcasecmp(hdr->header, "Content-Type") && r->content_type) {
+ if (!ap_casecmpstr(hdr->header, "Content-Type") && r->content_type) {
const char *repl = process_regexp(hdr, r->content_type, r);
if (repl == NULL)
return 0;