httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r666180 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Date Tue, 10 Jun 2008 16:14:50 GMT
Author: jim
Date: Tue Jun 10 09:14:47 2008
New Revision: 666180

URL: http://svn.apache.org/viewvc?rev=666180&view=rev
Log:
move back to inner loop... fails otherwise

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_http.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=666180&r1=666179&r2=666180&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Tue Jun 10 09:14:47 2008
@@ -1353,7 +1353,6 @@
      */
 
     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 @@
             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) {



Mime
View raw message