]> granicus.if.org Git - apache/commit
Add a PROXYREQ_RESPONSE value for request_rec->proxyreq because it is
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 07:04:45 +0000 (07:04 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 07:04:45 +0000 (07:04 +0000)
commit5607afff2be5ec3f6a23b671f9aa9a6c49c158ea
treeba4c974138a25181633fb8efbdf48956772418e6
parent3f58700dab3e998c764a7159453b3f5ea854f638
Add a PROXYREQ_RESPONSE value for request_rec->proxyreq because it is
possible that there can be different behavior at the protocol level if
request_rec isn't really a request but a response.

This stems from the fact that request bodies must be indicated by
Content-Length or Transfer-Encoding, but response bodies do not.  The
recent change to ap_http_filter to return EOS if there isn't a body broke
proxy.  Therefore, there must be some way for the proxy to indicate that
this is a response.  Accordingly, ap_http_filter can allow the BODY_NONE
iff this is a response.

Since r->proxyreq is set to PROXYREQ_PROXY even for the original request
from the client, that value isn't sufficient.  Hence, the introduction of
PROXYREQ_RESPONSE.

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