From e86a47d9a0cbec38954c74ddafc05fb9af8bfb64 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 2 Nov 2000 20:01:52 +0000 Subject: [PATCH] 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 --- modules/generators/mod_autoindex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.40.0