httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_ajp.c
Date Wed, 11 Aug 2004 20:48:15 GMT
wrowe       2004/08/11 13:48:15

  Modified:    modules/proxy proxy_ajp.c
  Log:
  Use ajp scheme when doing canonicalise.
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.8       +7 -6      httpd-2.0/modules/proxy/proxy_ajp.c
  
  Index: proxy_ajp.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_ajp.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- proxy_ajp.c	11 Aug 2004 20:46:29 -0000	1.7
  +++ proxy_ajp.c	11 Aug 2004 20:48:15 -0000	1.8
  @@ -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;
  
  
  

Mime
View raw message