From: William A. Rowe Jr Date: Thu, 2 Nov 2000 20:01:52 +0000 (+0000) Subject: Two patches (sorry), first to clean up the double assignment of the X-Git-Tag: APACHE_2_0_ALPHA_8~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e86a47d9a0cbec38954c74ddafc05fb9af8bfb64;p=apache 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86803 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 840d70e047..3329d8da14 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1557,10 +1557,14 @@ static int index_directory(request_rec *r, 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);