From 5875d5f9cfe225f2882b4941ef69e7917a9eac8e Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 8 Feb 2005 16:08:53 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy_http.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.50.1