]> granicus.if.org Git - apache/commitdiff
ap_proxy_determine_connection modifies the url if we are retrying the result we shoul...
authorJean-Frederic Clere <jfclere@apache.org>
Mon, 20 Oct 2008 15:11:05 +0000 (15:11 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Mon, 20 Oct 2008 15:11:05 +0000 (15:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@706318 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ajp.c

index 3bd0dd75293e00ccd55c49cc12a7909da1f6a827..b9437ed16beb21f556db962c1e8774f1f9f99fea 100644 (file)
@@ -645,9 +645,10 @@ static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
 
     retry = 0;
     while (retry < 2) {
+        char *locurl = url;
         /* Step One: Determine Who To Connect To */
         status = ap_proxy_determine_connection(p, r, conf, worker, backend,
-                                               uri, &url, proxyname, proxyport,
+                                               uri, &locurl, proxyname, proxyport,
                                                server_portstr,
                                                sizeof(server_portstr));
 
@@ -685,7 +686,7 @@ static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
             }
         }
         /* Step Three: Process the Request */
-        status = ap_proxy_ajp_request(p, r, backend, origin, dconf, uri, url,
+        status = ap_proxy_ajp_request(p, r, backend, origin, dconf, uri, locurl,
                                       server_portstr);
         break;
     }