httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13986] - remove default MIME-type
Date Wed, 05 Feb 2003 13:04:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13986>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13986

remove default MIME-type





------- Additional Comments From bbaetz@student.usyd.edu.au  2003-02-05 13:04 -------
I think we're talking past each other.

In an ideal world, Apache would 'know' the correct mime type for any file anyone
ever wants to hand it. This would be 100% correct, and would be sent to the
browser, and everyone would be happy.

_However_, the fact is that that isn't  the case, which is why there is any sort
of default setting at all. The current Apache behaviour is to claim that
'unknown' types are application/octet-stream. This means that if I have a .svg
file, which is then sent as application/octet-stream, the browser MUST (by
RFC2616 and friends) treat it as application/octet-stream, and offer to save it
to disk rather than viewing it. The converse of this is when the default mime
type is set as text/plain. If I then download an rpm file (assuming no entry in
a mimetype file), the browser MUST show it to the user, without prompting to
save, assuming that the browser handles text/plain files. No setting for
DefaultType can win all the time.

If Apache didn't send a mime type for those cases, then the browser could sniff
the contents (similar to mod_mime_magic), or do extention matching, or ask
/dev/random, or whatever else it feels like doing. With a mime type, mozilla
MUST NOT try to guess.

IE always does sniffing, which is broken - try to feed it an SVG file as
text/plain for debugging, and watch it complain that I can't use an XML file
with a <?stylesheet directive, rather than show me plain text. This is also
against the HTTP RFC. Hixie has a set of tests to test that sort of stuff somewhere.

FWIW, None should be the default, since I imagine that thats not part of a
config file most admins are likly to change.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message