30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
--- a/modules/mappers/mod_negotiation.c 2024/06/24 17:52:31 1918559
|
|
+++ b/modules/mappers/mod_negotiation.c 2024/06/24 17:54:34 1918560
|
|
@@ -1167,7 +1167,7 @@
|
|
* might be doing.
|
|
*/
|
|
if (sub_req->handler && !sub_req->content_type) {
|
|
- ap_set_content_type(sub_req, CGI_MAGIC_TYPE);
|
|
+ ap_set_content_type_ex(sub_req, CGI_MAGIC_TYPE, 1);
|
|
}
|
|
|
|
/*
|
|
@@ -3003,14 +3003,14 @@
|
|
/* set MIME type and charset as negotiated */
|
|
if (best->mime_type && *best->mime_type) {
|
|
if (best->content_charset && *best->content_charset) {
|
|
- ap_set_content_type(r, apr_pstrcat(r->pool,
|
|
+ ap_set_content_type_ex(r, apr_pstrcat(r->pool,
|
|
best->mime_type,
|
|
"; charset=",
|
|
best->content_charset,
|
|
- NULL));
|
|
+ NULL), 1);
|
|
}
|
|
else {
|
|
- ap_set_content_type(r, apr_pstrdup(r->pool, best->mime_type));
|
|
+ ap_set_content_type_ex(r, apr_pstrdup(r->pool, best->mime_type), 1);
|
|
}
|
|
}
|
|
|