]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Modified mod_mime and mod_negotiation to prevent mod_negotiation
authorBill Stoddard <stoddard@apache.org>
Tue, 2 Oct 2001 21:01:31 +0000 (21:01 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 2 Oct 2001 21:01:31 +0000 (21:01 +0000)
commit9573df4790b49af143619bbb8662307683cf13aa
tree0c818385ca6030b3ebbe9a4a5f3ec8f67a9c51f3
parentadfc227422dab1d2545310fbc4cf0496748ff8ea
Modified mod_mime and mod_negotiation to prevent mod_negotiation
from serving any multiview variant containing one or more
'unknown' filename extensions. In PR #8130, mod_negotiation was
incorrectly serving index.html.zh.Big5 when better variants were
available. The httpd.conf file on the failing server did not have
an AddLanguage directive for .zh, which caused mod_mime to loose
the file_type information it gleened from parsing the .html
extension. The absence of any language preferences, either in
the browser or configured on the server, caused mod_negotiation
to consider all the variants equivalent. When that occurs,
mod_negotiation picks the 'smallest' variant available, which
just happened to be  index.html.zh.Big5.
[Bill Stoddard, Bill Rowe] PR #8130

PR: 8130

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91243 13f79535-47bb-0310-9956-ffa450edef68
src/CHANGES
src/modules/standard/mod_mime.c
src/modules/standard/mod_negotiation.c