On Apr 30, 2009, at 9:17 AM, Brad King wrote:
> Matthew Leotta wrote:
>> On Apr 30, 2009, at 9:01 AM, Brad King wrote:
>>> Matthew Leotta wrote:
>>>> I changed the mime-type of texi files (at least in core/doc/book)
>>>> to 'text/x-texinfo'.
>>> Is that a valid mime-type?
>> It is probably not a valid mime-type. Is there an official list of
>> valid mime-types somewhere? What makes a mime-type valid?
Thanks, but I don't see 'text/x-c++src' or most of the other 'text/x-
*' mime-types for source code that we are currently using. Where did
these come from?
> One purpose of the svn:mime-type property is to tell web viewers how
> show the content of a file. There is nothing wrong with 'text/plain'.
It seems really odd to me that are valid text types for just about
every kind of source code file, but texi files are considered binary.
If 'text/x-c++src' is not part of the web standards, then does it
matter if I also create a 'text/x-texinfo' mime-type? I don't imagine
web browsers would know what to do with it any more than they know
what to do with 'text/x-c++src'. I suspect unmatched 'text/*' usually
defaults to 'text/plain'.
I'm fine with changing texinfo files to 'text/plain' if there is
really no better, more descriptive choice, but I still don't
understand what defines a valid mime-type.