]> granicus.if.org Git - apache/commit
*** Patch for EBCDIC-host and HTTP/0.9 responses only ***
authorMartin Kraemer <martin@apache.org>
Tue, 29 Jun 2004 14:00:07 +0000 (14:00 +0000)
committerMartin Kraemer <martin@apache.org>
Tue, 29 Jun 2004 14:00:07 +0000 (14:00 +0000)
commit7f9a011ae3f8d091d370b32699699016e4723067
tree51454ac09df54ce33077d392ea84f449126b13d1
parent1577a9adf61ea4f4f22e1986a2591984c7d68ae2
*** Patch for EBCDIC-host and HTTP/0.9 responses only ***
In dealing with a HTTP/0.9 response to a proxy request, we have pre-read
data that is not an HTTP header. At this point of processing, we don't
know yet whether the data is going to be interpreted an binary or not.
(In fact, we may never find out because HTTP/0.9 lacks the Content-Type
headers; only by configuring mod_charset_lite can we control the conversion).
But mod_charset_lite will get control only later, so it cannot decide on
the conversion of the current buffer full of data.
=> This is an extreme and rare situation normally.
So, for catching the most obvious problem (talking not to a HTTP server
but to some other protocol), the best guess here is to treat the buffer
as "text/*" (to make error messages readable).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104081 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/proxy_http.c