From 6e450bc66063b43177b494af47f9be3d8686ac81 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Thu, 29 May 2008 20:12:58 +0000 Subject: [PATCH] * Set at init time and combine comments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@661459 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_balancer.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 0be4cff38c..eecfb9e8ce 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -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 */ } -- 2.40.0