[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MIME type meta-data

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-03-04 21:35:49 CET

Matthew Hambley <matthew@aether.demon.co.uk> writes:
> I was particularly taken with the ability of a Subversion repository to
> make use of the "mime-type" property when being interrogated by a standard
> web browser. This seems like a really funky feature so I was disappointed
> that files default to either un-taged or 'application/octet-stream'.

We choose that to play it safe -- by assuming the data is binary, we
won't be tempted to munge it, nor encourage anyone else to munge it.

> I've had a look at the source and noticed that there is a function
> svn_io_detect_mimetype which decides this value. Is the plan to use this
> at some point to map some suitable identifier (file extensions for
> instance) to a MIME type?

If we can do so reliably. Are extensions considered reliable? I
don't know what the conventional wisdom is on this subject.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 4 22:12:45 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.