httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r649170 - /httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c
Date Thu, 17 Apr 2008 16:24:21 GMT
Author: jim
Date: Thu Apr 17 09:24:16 2008
New Revision: 649170

URL: http://svn.apache.org/viewvc?rev=649170&view=rev
Log:
and make mod_proxy_fcgi also nocanon aware

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

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c?rev=649170&r1=649169&r2=649170&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c Thu Apr 17 09:24:16 2008
@@ -103,8 +103,13 @@
         host = apr_pstrcat(r->pool, "[", host, "]", NULL);
     }
 
-    path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
+    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