httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_http.c
Date Tue, 24 Aug 2004 08:24:18 GMT
mturk       2004/08/24 01:24:18

  Modified:    modules/proxy proxy_http.c
  Log:
  Use ap_str_tolower for lowercasing the scheme.
  That was the original intention (not apr_tolower).
  
  Revision  Changes    Path
  1.195     +3 -8      httpd-2.0/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
  retrieving revision 1.194
  retrieving revision 1.195
  diff -u -r1.194 -r1.195
  --- proxy_http.c	13 Aug 2004 12:15:46 -0000	1.194
  +++ proxy_http.c	24 Aug 2004 08:24:18 -0000	1.195
  @@ -849,7 +849,7 @@
               apr_table_do(addit_dammit, save_table, r->headers_out,
                            "Set-Cookie", NULL);
   
  -	    /* shove the headers direct into r->headers_out */
  +        /* shove the headers direct into r->headers_out */
               ap_proxy_read_headers(r, rp, buffer, sizeof(buffer), origin);
   
               if (r->headers_out == NULL) {
  @@ -873,7 +873,7 @@
   
                   /* Now, add in the just read cookies */
                   apr_table_do(addit_dammit, save_table, r->headers_out,
  -        	             "Set-Cookie", NULL);
  +                         "Set-Cookie", NULL);
   
                   /* and now load 'em all in */
                   if (!apr_is_empty_table(save_table)) {
  @@ -1115,7 +1115,6 @@
       int status;
       char server_portstr[32];
       char *scheme;
  -    char *ch;
       const char *proxy_function;
       const char *u;
       proxy_conn_rec *backend = NULL;
  @@ -1146,11 +1145,7 @@
           return HTTP_BAD_REQUEST;
       scheme = apr_pstrndup(c->pool, url, u - url);
       /* scheme is lowercase */
  -    ch = scheme;
  -    while (*ch) {
  -        *ch = apr_tolower(*ch);
  -        ++ch;
  -    }
  +    ap_str_tolower(scheme);
       /* is it for us? */
       if (strcmp(scheme, "https") == 0) {
           if (!ap_proxy_ssl_enable(NULL)) {
  
  
  

Mime
View raw message