httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject Apache adding content-type to responses without one
Date Fri, 01 Mar 2002 05:12:51 GMT
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

-----------------------------------------		"There's a moon
					over Bourbon Street
View raw message