httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <m...@hyperreal.com>
Subject cvs commit: apache/src mod_dir.c
Date Sat, 08 Feb 1997 00:39:24 GMT
marc        97/02/07 16:39:23

  Modified:    src       mod_dir.c
  Log:
  Return a 301 instead of a 302 from a redirect when a directory is
  missing a trailing '/' to allow it to be cacheable.
  
  Closes PR#77.
  
  Reviewed by: Marc Slemko, Ed Korthof, Dean Gaudet
  Submitted by: Markus Gyger <mgyger@itr.ch>
  
  Revision  Changes    Path
  1.21      +2 -2      apache/src/mod_dir.c
  
  Index: mod_dir.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_dir.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -C3 -r1.20 -r1.21
  *** mod_dir.c	1997/01/12 20:11:53	1.20
  --- mod_dir.c	1997/02/08 00:39:22	1.21
  ***************
  *** 783,790 ****
    			 "/", NULL);
    
    	table_set (r->headers_out, "Location",
  ! 		   construct_url(r->pool, ifile, r->server));
  ! 	return REDIRECT;
        }
    
        /* KLUDGE --- make the sub_req lookups happen in the right directory.
  --- 783,790 ----
    			 "/", NULL);
    
    	table_set (r->headers_out, "Location",
  ! 		   construct_url(r->pool, ifile, r->server)); 
  ! 	return HTTP_MOVED_PERMANENTLY;
        }
    
        /* KLUDGE --- make the sub_req lookups happen in the right directory.
  
  
  

Mime
View raw message