]> granicus.if.org Git - apache/commitdiff
Change r->content_type when mod_headers sets the Content-Type header
authorIssac Goldstand <issac@apache.org>
Sun, 27 Jul 2008 09:23:26 +0000 (09:23 +0000)
committerIssac Goldstand <issac@apache.org>
Sun, 27 Jul 2008 09:23:26 +0000 (09:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@680082 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_headers.c

index 8e748fa9d7493c131333b94c6cd97f5f6776f5ce..b65fbfd07716c07aca038b1f195db5199b0bef0f 100644 (file)
@@ -680,6 +680,9 @@ static void do_headers_fixup(request_rec *r, apr_table_t *headers,
             }
             break;
         case hdr_set:
+            if (!strcasecmp(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: