}
if (ctx->filter->outtype &&
ctx->filter->outtype != OUTTYPE_UNCHANGED) {
- ap_set_content_type(f->r, ctx->filter->outtype);
+ ap_set_content_type_ex(f->r, ctx->filter->outtype, 1);
}
if (ctx->filter->preserves_content_length != 1) {
/* nasty, but needed to avoid confusing the browser
#endif
}
if (*charset) {
- ap_set_content_type(r, apr_pstrcat(r->pool, ctype, ";charset=",
- charset, NULL));
+ ap_set_content_type_ex(r, apr_pstrcat(r->pool, ctype, ";charset=",
+ charset, NULL), 1);
}
else {
- ap_set_content_type(r, ctype);
+ ap_set_content_type_ex(r, ctype, 1);
}
if (autoindex_opts & TRACK_MODIFIED) {
/* Is ap_make_content_type required here? */
const char *orig_ct = ap_make_content_type(r, r->content_type);
- ap_set_content_type(r, apr_pstrcat(r->pool,
+ ap_set_content_type_ex(r, apr_pstrcat(r->pool,
"multipart/byteranges; boundary=",
- ap_multipart_boundary, NULL));
+ ap_multipart_boundary, NULL), 1);
if (orig_ct) {
bound_head = apr_pstrcat(r->pool,
}
if (r->handler)
- ap_set_content_type(new, r->content_type);
+ ap_set_content_type_ex(new, r->content_type, AP_REQUEST_IS_TRUSTED_CT(r));
access_status = ap_process_request_internal(new);
if (access_status == OK) {
access_status = ap_invoke_handler(new);
/* set content-type */
if (dirlisting) {
- ap_set_content_type(r, apr_pstrcat(p, "text/html;charset=",
+ ap_set_content_type_ex(r, apr_pstrcat(p, "text/html;charset=",
fdconf->ftp_directory_charset ?
fdconf->ftp_directory_charset :
- "ISO-8859-1", NULL));
+ "ISO-8859-1", NULL), 1);
}
else {
if (xfer_type != 'A' && size != NULL) {