tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/ajp/proxy proxy_ajp.c
Date Mon, 02 Aug 2004 16:58:23 GMT
mturk       2004/08/02 09:58:23

  Modified:    ajp/proxy proxy_ajp.c
  Log:
  Use ajp scheme when doing canonicalise.
  
  Revision  Changes    Path
  1.10      +7 -6      jakarta-tomcat-connectors/ajp/proxy/proxy_ajp.c
  
  Index: proxy_ajp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/proxy_ajp.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- proxy_ajp.c	2 Aug 2004 16:55:20 -0000	1.9
  +++ proxy_ajp.c	2 Aug 2004 16:58:23 -0000	1.10
  @@ -55,13 +55,14 @@
                "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;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message