Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 15412 invoked by uid 500); 2 Mar 2002 19:12:24 -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 15399 invoked from network); 2 Mar 2002 19:12:24 -0000 Errors-To: Message-Id: <5.1.0.14.2.20020302130821.01b8b418@localhost> X-Sender: wrowe%rowe-clan.net/pop3.rowe-clan.net@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 02 Mar 2002 13:10:04 -0600 To: dev@httpd.apache.org From: "William A. Rowe, Jr." Subject: Re: Apache adding content-type to responses without one In-Reply-To: <3C7F0DD3.33A5329B@sharp.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I disagree entirely. You should be -able- to do so, without being forced to do so. The simple fix is not to define the default content type in the root of the directive. However, there seems no 'trivial' way to do so, unless would accomplish this. If we don't support a 'none' option to the default content type directive, we aught to do so. Bill At 11:12 PM 2/28/2002, you wrote: >Hi all, > >Recently someone noted that certain parts of Ebay didn't work via >mod_proxy. This was because the pages in question had no content-type >header, and Apache was adding a default header "text/plain", which >caused browsers to display the source of the page. > >The resulting discussion said that proxy should just send through no >content-type header if one was not supplied, and let the borwser handle >the brokenness. However - the code that actually adds the content-type >when it is missing sits in make_content_type() in http_protocol.c. > >So - the fix seems to be to change make_content_type() to return NULL if >the incoming content-type is missing. But - will this break anything >else...? > >Regards, >Graham >-- >----------------------------------------- >minfrin@sharp.fm "There's a moon > over Bourbon Street > tonight..."