Subject: SuppressHTMLPreamble fix/feature
References: <199611040512.IAA03656@nagual.ru>
Date: Sat, 30 Nov 1996 04:43:29 -0800
From: "Roy T. Fielding" <fielding@kiwi.ICS.UCI.EDU>
Message-ID:  <9611300444.aa26585@paris.ics.uci.edu>

Two people have asked for this change this month, and I've wanted it for
a long time, so I went ahead and coded it for 1.2b1 along the lines
suggested by Andrey A. Chernov (ache@nagual.ru), but using better code IMHO.
In his words:

>Situation:
>It is impossible to suppress initial HTML preamble for directories, i.e.
><HEAD><TITLE>Index of dir</TITLE></HEAD><BODY>
>It means that it is impossible to change <TITLE> or add any
><META HTTP-EQUIV...> tags to <HEAD> section or change <BODY>
>attributes without HTML syntax violation (.asis, cern_meta, etc.
>not helps here too).
>
>Fix:
>I add "SuppressHTMLPreamble" option to "IndexOptions". When this option
>is set _and_ HEADER.html (or what you set as it) is present and readable,
>standard <HEAD><TITLE>Index of dir</TITLE></HEAD><BODY> preamble
>will be suppressed [with the assumption being that] you have right HTML
>preamble in your HEADER.html. It solves all problems mentioned above.

Index: mod_dir.c
