]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Set at init time and combine comments.
authorRuediger Pluem <rpluem@apache.org>
Thu, 29 May 2008 20:12:58 +0000 (20:12 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 29 May 2008 20:12:58 +0000 (20:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@661459 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index 0be4cff38c260473a6daa53c3677e8aacbb352d9..eecfb9e8ceaa9b364128be2191feb4c904351a5d 100644 (file)
@@ -26,7 +26,8 @@ module AP_MODULE_DECLARE_DATA proxy_balancer_module;
 
 static int proxy_balancer_canon(request_rec *r, char *url)
 {
-    char *host, *path, *search;
+    char *host, *path;
+    char *search = NULL;
     const char *err;
     apr_port_t port = 0;
 
@@ -50,10 +51,11 @@ static int proxy_balancer_canon(request_rec *r, char *url)
                       url, err);
         return HTTP_BAD_REQUEST;
     }
-    /* now parse path/search args, according to rfc1738 */
-    search = NULL;
-
-    /* process path */
+    /*
+     * now parse path/search args, according to rfc1738:
+     * process the path. With proxy-noncanon set (by
+     * mod_proxy) we use the raw, unparsed uri
+     */
     if (apr_table_get(r->notes, "proxy-nocanon")) {
         path = url;   /* this is the raw path */
     }