]> granicus.if.org Git - apache/commitdiff
move back to inner loop... fails otherwise
authorJim Jagielski <jim@apache.org>
Tue, 10 Jun 2008 16:14:47 +0000 (16:14 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 10 Jun 2008 16:14:47 +0000 (16:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@666180 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_http.c

index 012e1a9f0f4b7befac7899baa5b43534b0e2096f..c7be88ff715340fa9bf50d056f8d5fc85f9f26c4 100644 (file)
@@ -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) {