]> granicus.if.org Git - apache/commitdiff
Use ajp scheme when doing canonicalise.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:48:15 +0000 (20:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:48:15 +0000 (20:48 +0000)
Submitted by: mturk

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104563 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ajp.c

index 2cd27c38b35568f197ef9400e66116a111aa7eb8..1cc368ff0ab0806ae8eb97b60d14166bd1d3722d 100644 (file)
@@ -55,13 +55,14 @@ int ap_proxy_ajp_canon(request_rec *r, char *url)
              "proxy: AJP: canonicalising URL %s", url);
 
     /* ap_port_of_scheme() */
-    if (strncasecmp(url, "http:", 5) == 0) {
+    if (strncasecmp(url, "ajp:", 4) == 0) {
+        url += 4;
+        scheme = "ajp";
+    }    
+    /* XXX This is probably faulty */ 
+    else if (strncasecmp(url, "ajps:", 5) == 0) {
         url += 5;
-        scheme = "http";
-    }
-    else if (strncasecmp(url, "https:", 6) == 0) {
-        url += 6;
-        scheme = "https";
+        scheme = "ajps";
     }
     else {
         return DECLINED;