httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c mod_rewrite.h
Date Wed, 16 Jul 2003 18:23:38 GMT
nd          2003/07/16 11:23:38

  Modified:    modules/mappers mod_rewrite.c mod_rewrite.h
  Log:
  optimization: no need to use the pool here. This is
  obviously a static value.
  
  Revision  Changes    Path
  1.163     +1 -2      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.162
  retrieving revision 1.163
  diff -u -r1.162 -r1.163
  --- mod_rewrite.c	16 Jul 2003 17:27:26 -0000	1.162
  +++ mod_rewrite.c	16 Jul 2003 18:23:37 -0000	1.163
  @@ -1176,8 +1176,7 @@
        */
   
       if (r->main == NULL) {
  -         var = apr_pstrcat(r->pool, "REDIRECT_", ENVVAR_SCRIPT_URL, NULL);
  -         var = apr_table_get(r->subprocess_env, var);
  +         var = apr_table_get(r->subprocess_env, REDIRECT_ENVVAR_SCRIPT_URL);
            if (var == NULL) {
                apr_table_setn(r->subprocess_env, ENVVAR_SCRIPT_URL, r->uri);
            }
  
  
  
  1.45      +1 -0      httpd-2.0/modules/mappers/mod_rewrite.h
  
  Index: mod_rewrite.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.h,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- mod_rewrite.h	15 Jul 2003 23:30:40 -0000	1.44
  +++ mod_rewrite.h	16 Jul 2003 18:23:37 -0000	1.45
  @@ -142,6 +142,7 @@
   */
   
   #define ENVVAR_SCRIPT_URL "SCRIPT_URL"
  +#define REDIRECT_ENVVAR_SCRIPT_URL "REDIRECT_SCRIPT_URL"
   #define ENVVAR_SCRIPT_URI "SCRIPT_URI"
   
   #define REWRITE_FORCED_MIMETYPE_NOTEVAR "rewrite-forced-mimetype"
  
  
  

Mime
View raw message