You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/01/31 08:55:07 UTC

svn commit: r1873409 - /httpd/test/framework/trunk/t/modules/autoindex.t

Author: jorton
Date: Fri Jan 31 08:55:06 2020
New Revision: 1873409

URL: http://svn.apache.org/viewvc?rev=1873409&view=rev
Log:
Fix tests for trunk after r1873397.

Modified:
    httpd/test/framework/trunk/t/modules/autoindex.t

Modified: httpd/test/framework/trunk/t/modules/autoindex.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/autoindex.t?rev=1873409&r1=1873408&r2=1873409&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/autoindex.t (original)
+++ httpd/test/framework/trunk/t/modules/autoindex.t Fri Jan 31 08:55:06 2020
@@ -122,8 +122,17 @@ foreach my $fancy (0,1) {
 sub ai_test ($$$$) {
     my ($htconf,$c,$o,$t_uri) = @_;
 
-    my $html_head = <<HEAD;
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+    my $html_head;
+
+    if (have_min_apache_version('2.5.1')) {
+        $html_head = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
+    }
+    else {
+        $html_head = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">';
+    }
+
+    $html_head .= <<HEAD;
+
 <html>
  <head>
   <title>Index of $uri_prefix</title>