Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8389992C for ; Thu, 10 May 2012 16:40:30 +0000 (UTC) Received: (qmail 61252 invoked by uid 500); 10 May 2012 16:40:30 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 61179 invoked by uid 500); 10 May 2012 16:40:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 61165 invoked by uid 99); 10 May 2012 16:40:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 16:40:29 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO baldur) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 16:40:24 +0000 Received: from baldur (localhost [127.0.0.1]) by baldur (Postfix) with ESMTP id 79872C259834 for ; Thu, 10 May 2012 17:40:01 +0100 (BST) Date: Thu, 10 May 2012 17:39:59 +0100 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: about setting r->headers_out Message-ID: <20120510173959.4968cb86@baldur> In-Reply-To: <4FAB9A46.8060307@cord.dk> References: <4FAB9A46.8060307@cord.dk> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 10 May 2012 12:36:54 +0200 Daniel Gruno wrote: > On 10-05-2012 12:25, Julio Carlos Barrera Juez wrote: > > Hi! > > > > I have the same problem than you, Rui Hu. I have an output filter that > > changes the body of the response, but then "content-type" header is > > changed to "text/plain", and I want to maintain the original > > "text/html". Erm, that doesn't sound like an original anything. More like the core inserting a default type when none was set. > Have you tried using ap_set_content_type(r, "text/html") instead? > I noticed that in its description, it says: That should be the usual solution. > "This function must be called to set r->content_type in order for the > AddOutputFilterByType directive to work correctly.", so it may be > related to your problem. Whoops! That's no longer true since AddOutputFilterByType moved to mod_filter. Where do the docs still say that? -- Nick Kew