httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_autoindex.c
Date Thu, 02 Nov 2000 20:01:55 GMT
wrowe       00/11/02 12:01:54

  Modified:    src/modules/standard mod_autoindex.c
  Log:
    Two patches (sorry), first to clean up the double assignment of the
    r->content_type value on UNICODE_FS, and the second to add ETag and
    Modified-Date to the file listing.  If anyone sees an objection to
    this thing, please scream (loudly) before I go and attack 1.3.x with
    the ETag/Modified-Date Friday a.m.
  
  Revision  Changes    Path
  1.45      +5 -1      apache-2.0/src/modules/standard/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_autoindex.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- mod_autoindex.c	2000/10/25 02:46:40	1.44
  +++ mod_autoindex.c	2000/11/02 20:01:52	1.45
  @@ -1557,10 +1557,14 @@
   	return HTTP_FORBIDDEN;
       }
   
  -    r->content_type = "text/html";
   #if APR_HAS_UNICODE_FS 
       r->content_type = "text/html;charset=utf-8";
  +#else
  +    r->content_type = "text/html";
   #endif
  +    ap_update_mtime(r, r->finfo.mtime);
  +    ap_set_last_modified(r);
  +    ap_set_etag(r);
   
       ap_send_http_header(r);
   
  
  
  

Mime
View raw message