-*- coding: utf-8 -*-
Changes with Apache 2.4.64
+ *) 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_ssl: Remove warning over potential uninitialised value
for ssl protocol prior to protocol selection.
[Graham Leggett]
}
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_ex(r, process_tags(hdr, r), 1);
}
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_ex(r, process_tags(hdr, r), 1);
}
apr_table_setn(headers, hdr->header, process_tags(hdr, r));
break;
case hdr_unset:
apr_table_unset(headers, hdr->header);
+ if (r->headers_in != headers &&
+ !ap_cstr_casecmp(hdr->header, "Content-Type")) {
+ ap_set_content_type(r, NULL);
+ }
break;
case hdr_echo:
v.r = r;
const char *repl = process_regexp(hdr, r->content_type, r);
if (repl == NULL)
return 0;
- ap_set_content_type_ex(r, repl, 1);
+ if (r->headers_in != headers) ap_set_content_type_ex(r, repl, 1);
}
if (apr_table_get(headers, hdr->header)) {
edit_do ed;