httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r649169 - /httpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c
Date Thu, 17 Apr 2008 16:22:47 GMT
Author: jim
Date: Thu Apr 17 09:22:36 2008
New Revision: 649169

URL: http://svn.apache.org/viewvc?rev=649169&view=rev
Log:
Make mod_proxy_ajp aware of the nocanon envvar

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

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c?rev=649169&r1=649168&r2=649169&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_ajp.c Thu Apr 17 09:22:36 2008
@@ -72,8 +72,13 @@
         search = r->args;
 
     /* process path */
-    path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
-                             r->proxyreq);
+    if (apr_table_get(r->notes, "proxy-nocanon")) {
+        path = url;   /* this is the raw path */
+    }
+    else {
+        path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
+                                 r->proxyreq);
+    }
     if (path == NULL)
         return HTTP_BAD_REQUEST;
 



Mime
View raw message