]> granicus.if.org Git - apache/commitdiff
Two patches (sorry), first to clean up the double assignment of the
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Nov 2000 20:01:52 +0000 (20:01 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Nov 2000 20:01:52 +0000 (20:01 +0000)
  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

index 840d70e0474c01795592a61f1bad0f93f4286cc3..3329d8da143e3ffadc57d4c09de97c0dd9f8d34b 100644 (file)
@@ -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);