From: Jim Jagielski Date: Tue, 28 Aug 2007 20:13:59 +0000 (+0000) Subject: Make Bill happy ;) X-Git-Tag: 2.3.0~1512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad1fb816187d35301890e24589854877a64855e8;p=apache Make Bill happy ;) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@570558 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 926cf6f274..75528e6fee 100644 --- a/CHANGES +++ b/CHANGES @@ -1,7 +1,7 @@ -*- coding: utf-8 -*- Changes with Apache 2.3.0 - *) mod_autoindex: Add in ContentType and Charset options to + *) mod_autoindex: Add in Type and Charset options to IndexOptions directive. This allows the admin to explicitly set the content-type and charset of the generated page. [Jim Jagielski] diff --git a/docs/manual/mod/mod_autoindex.xml b/docs/manual/mod/mod_autoindex.xml index 1a876a39a5..a3b568db74 100644 --- a/docs/manual/mod/mod_autoindex.xml +++ b/docs/manual/mod/mod_autoindex.xml @@ -541,17 +541,17 @@ indexing -
ContentType=MIME content-type (Apache 2.0.61 and +
Type=MIME content-type (Apache 2.0.61 and later)
-
The ContentType keyword allows you to +
The Type keyword allows you to specify the MIME content-type of the generated page. The default is text/html. Example: - IndexOptions ContentType=text/plain + IndexOptions Type=text/plain
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 7a4fdbadf9..8d514021a5 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -478,8 +478,8 @@ static const char *add_opts(cmd_parms *cmd, void *d, int argc, char *const argv[ d_cfg->desc_adjust = K_NOADJUST; } } - else if (!strncasecmp(w, "ContentType=", 12)) { - d_cfg->ctype = apr_pstrdup(cmd->pool, &w[12]); + else if (!strncasecmp(w, "Type=", 5)) { + d_cfg->ctype = apr_pstrdup(cmd->pool, &w[5]); } else if (!strncasecmp(w, "Charset=", 8)) { d_cfg->charset = apr_pstrdup(cmd->pool, &w[8]);