From 6806faa3d4048de40fda986705c4a533ca0df7ce Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 10 Jun 2008 16:14:47 +0000 Subject: [PATCH] move back to inner loop... fails otherwise git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@666180 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 012e1a9f0f..c7be88ff71 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1353,7 +1353,6 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, */ rp = ap_proxy_make_fake_req(origin, r); - ap_proxy_pre_http_request(origin, rp); /* In case anyone needs to know, this is a fake request that is really a * response. */ @@ -1539,6 +1538,9 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, if ((buf = apr_table_get(r->headers_out, "Content-Type"))) { ap_set_content_type(r, apr_pstrdup(p, buf)); } + if (!ap_is_HTTP_INFO(r->status)) { + ap_proxy_pre_http_request(origin, rp); + } /* Clear hop-by-hop headers */ for (i=0; hop_by_hop_hdrs[i]; ++i) { -- 2.40.0