-*- coding: utf-8 -*-
Changes with Apache 2.5.1
+
+ *) mod_headers: 'RequestHeader set|edit|edit_r Content-Type X' could
+ inadvertently modify the Content-Type _response_ header. Applies to
+ Content-Type only and likely to only affect static file responses.
+ [Eric Covener]
+
*) mod_cgi: Improve AH01215 messages to make it more clear that the message is
the CGI scripts stderr output. PR 61980. [Hank Ibell <hwibell gmail.com>]
}
break;
case hdr_set:
- if (!ap_cstr_casecmp(hdr->header, "Content-Type")) {
+ if (r->headers_in != headers &&
+ !ap_cstr_casecmp(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 (!ap_cstr_casecmp(hdr->header, "Content-Type")) {
+ if (r->headers_in != headers &&
+ !ap_cstr_casecmp(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_unset:
apr_table_unset(headers, hdr->header);
- if (!ap_cstr_casecmp(hdr->header, "Content-Type")) {
+ if (r->headers_in != headers &&
+ !ap_cstr_casecmp(hdr->header, "Content-Type")) {
ap_set_content_type(r, NULL);
}
break;
const char *repl = process_regexp(hdr, r->content_type, r);
if (repl == NULL)
return 0;
- ap_set_content_type(r, repl);
+ if (r->headers_in != headers) ap_set_content_type(r, repl);
}
if (apr_table_get(headers, hdr->header)) {
edit_do ed;