]> granicus.if.org Git - apache/commitdiff
Use the accessor to set r->content_type
authorBill Stoddard <stoddard@apache.org>
Fri, 22 Mar 2002 02:48:00 +0000 (02:48 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 22 Mar 2002 02:48:00 +0000 (02:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94114 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_ext_filter.c

index f425b5b352455def1725eebf5d9995f50bc37b29..d7ff6eb9afce6262fda8e939dcd940e21af672db 100644 (file)
@@ -503,7 +503,7 @@ static apr_status_t init_filter_instance(ap_filter_t *f)
         }
         if (ctx->filter->outtype &&
             ctx->filter->outtype != OUTTYPE_UNCHANGED) {
-            f->r->content_type = ctx->filter->outtype;
+            ap_set_content_type(f->r, ctx->filter->outtype);
         }
         if (ctx->filter->preserves_content_length != 1) {
             /* nasty, but needed to avoid confusing the browser