Received: by taz.hyperreal.com (8.8.4/V2.0) id FAA13999; Sat, 29 Mar 1997 05:48:20 -0800 (PST) Received: from DECUS.Org by taz.hyperreal.com (8.8.4/V2.0) with ESMTP id FAA13993; Sat, 29 Mar 1997 05:48:17 -0800 (PST) Received: from Lucy.DECUS.Org by DECUS.Org (PMDF V4.2-13 #18511) id <01IH2HKPG9WW8WWIDW@DECUS.Org>; Sat, 29 Mar 1997 08:48:07 EST Received: from Master.DECUS.Org by Lucy.DECUS.Org; (5.65v3.2/1.1.8.2/16Sep96-0258PM) id AA00949; Sat, 29 Mar 1997 08:51:51 -0500 Date: Sat, 29 Mar 1997 08:47:54 -0500 From: coar@decus.org (Rodent of Unusual Size) Subject: Re: Server-generated content-type? To: New-HTTPd@hyperreal.com, Coar@decus.org Message-id: <97032908475451@decus.org> X-VMS-To: NH X-VMS-Cc: COAR Content-transfer-encoding: 7BIT Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com >From the fingers of "Roy T. Fielding" flowed the following: > >Why don't you just set r->content_type? As I recall, I *did*, but it still got overridden. > The behavior is ancient, as far >as I can tell, but it would be easy to add a check for an existing >Content-Type before setting it to the default_type. Since three people consider this to be a bug (or at least misbehaviour), I'll come up with a patch that does this and the rest.. >> I can't find any reference to this behaviour; is the server >> *supposed* to force "text/html" on all outbound server-generated >> content? > >Only if no r->content_type and the default type is "text/html". It should >say that in API.html, but doesn't. That's what I thought, but there's definitely something funky going on. My default type is "text/plain", but it's getting set to "text/html" anyway. Okey, I'll see what I can come up with, including a patch to the dox. Thanx for the clarification. #ken :-)}