Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 13967 invoked from network); 16 Sep 2004 16:11:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Sep 2004 16:11:41 -0000 Received: (qmail 400 invoked by uid 500); 16 Sep 2004 16:11:33 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 349 invoked by uid 500); 16 Sep 2004 16:11:33 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 336 invoked by uid 99); 16 Sep 2004 16:11:33 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Sep 2004 09:11:32 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8GGBUxh017818 for ; Thu, 16 Sep 2004 12:11:30 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8GGBOr26567 for ; Thu, 16 Sep 2004 12:11:24 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i8GGBNNE016391 for ; Thu, 16 Sep 2004 17:11:23 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i8GGBNSF016390 for dev@httpd.apache.org; Thu, 16 Sep 2004 17:11:23 +0100 Date: Thu, 16 Sep 2004 17:11:22 +0100 From: Joe Orton To: dev@httpd.apache.org Subject: Re: AddOutputFilterByType oddness Message-ID: <20040916161122.GA16320@redhat.com> Mail-Followup-To: dev@httpd.apache.org References: <412A83B8.7060606@sharp.fm> <412B166E.3030107@sharp.fm> <0213D513EB8382AC2B10A7DC@st-augustin.ics.uci.edu> <412C88C7.2060004@sharp.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <412C88C7.2060004@sharp.fm> User-Agent: Mutt/1.4.1i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, Aug 25, 2004 at 02:40:39PM +0200, Graham Leggett wrote: > Justin Erenkrantz wrote: > >Ultimately, all that is needed is a call to ap_set_content_type() before > >any bytes are written to the client to get AddOutputFilterByType to > >work. Perhaps with the recent momentum behind mod_proxy work, someone > >could investigate that and get mod_proxy fixed. > > ap_set_content_type() is called on line 769 of proxy_http.c: But ap_add_output_filters_by_type() explicitly does nothing for a proxied request. Anyone know why? "AddOutputFilterByType DEFLATE text/plain text/html" seems to work as expected here for a forward proxy with this applied: maybe I'm missing something fundamental... --- server/core.c~ 2004-08-31 09:16:56.000000000 +0100 +++ server/core.c 2004-09-16 16:48:09.000000000 +0100 @@ -2875,11 +2875,10 @@ conf = (core_dir_config *)ap_get_module_config(r->per_dir_config, &core_module); - /* We can't do anything with proxy requests, no content-types or if - * we don't have a filter configured. + /* We can't do anything with no content-type or if we don't have a + * filter configured. */ - if (r->proxyreq != PROXYREQ_NONE || !r->content_type || - !conf->ct_output_filters) { + if (!r->content_type || !conf->ct_output_filters) { return; }