Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 21780 invoked by uid 500); 2 Nov 2000 20:02:00 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 21758 invoked by uid 500); 2 Nov 2000 20:01:57 -0000 Delivered-To: apmail-apache-2.0-cvs@apache.org Date: 2 Nov 2000 20:01:55 -0000 Message-ID: <20001102200155.21727.qmail@locus.apache.org> From: wrowe@locus.apache.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/modules/standard mod_autoindex.c 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);