-*- 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]
</example>
</dd>
- <dt><a name="indexoptions.contenttype"
- id="indexoptions.contenttype"
- >ContentType=<var>MIME content-type</var></a> (<em>Apache 2.0.61 and
+ <dt><a name="indexoptions.type"
+ id="indexoptions.type"
+ >Type=<var>MIME content-type</var></a> (<em>Apache 2.0.61 and
later</em>)</dt>
- <dd>The <code>ContentType</code> keyword allows you to
+ <dd>The <code>Type</code> keyword allows you to
specify the MIME content-type of the generated page. The default
is <var>text/html</var>.
<example><title>Example:</title>
- IndexOptions ContentType=text/plain
+ IndexOptions Type=text/plain
</example>
</dd>
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]);