You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Marc Slemko <ma...@hyperreal.com> on 1997/02/08 01:39:24 UTC
cvs commit: apache/src mod_dir.c
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 <mg...@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.