From: Jim Jagielski Date: Tue, 8 Feb 2005 16:08:53 +0000 (+0000) Subject: If we rec' a bad response header line, ignore what we've X-Git-Tag: 2.1.3~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5875d5f9cfe225f2882b4941ef69e7917a9eac8e;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index f3954376a22..46b1c7347cb 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) {