diff options
author | Jim Jagielski <jim@apache.org> | 2005-02-08 17:08:53 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2005-02-08 17:08:53 +0100 |
commit | 5875d5f9cfe225f2882b4941ef69e7917a9eac8e (patch) | |
tree | cbdcd3f139c270fb8f69f05ca3488a8e58de96cf | |
parent | * modules/cache/mod_cache.h: Move the structure declaration of cache_handle (diff) | |
download | apache2-5875d5f9cfe225f2882b4941ef69e7917a9eac8e.tar.xz apache2-5875d5f9cfe225f2882b4941ef69e7917a9eac8e.zip |
If we rec' a bad response header line, ignore what we've
rec'd so far and force BAD_GATEWAY.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@152676 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/mod_proxy_http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index f3954376a2..46b1c7347c 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -919,6 +919,7 @@ static void ap_proxy_read_headers(request_rec *r, request_rec *rr, if (!apr_date_checkmask(buffer, "HTTP/#.# ###*")) { if (psc->badopt == bad_error) { /* Nope, it wasn't even an extra HTTP header. Give up. */ + r->headers_out = NULL; return ; } else if (psc->badopt == bad_body) { |