]> granicus.if.org Git - apache/commitdiff
and make mod_proxy_fcgi also nocanon aware
authorJim Jagielski <jim@apache.org>
Thu, 17 Apr 2008 16:24:16 +0000 (16:24 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 17 Apr 2008 16:24:16 +0000 (16:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649170 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_fcgi.c

index 2ca1ced9669daf9088422598806d0553de28496a..4b2ff8a581843b8c4aa6b7ce396c40d1409df8f3 100644 (file)
@@ -103,8 +103,13 @@ static int proxy_fcgi_canon(request_rec *r, char *url)
         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;