You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2008/05/29 22:12:58 UTC
svn commit: r661459 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Author: rpluem
Date: Thu May 29 13:12:58 2008
New Revision: 661459
URL: http://svn.apache.org/viewvc?rev=661459&view=rev
Log:
* Set at init time and combine comments.
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=661459&r1=661458&r2=661459&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Thu May 29 13:12:58 2008
@@ -26,7 +26,8 @@
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 @@
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 */
}