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

Re: Alternate DUMP format

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-12-22 10:56:10 CET

David Summers wrote:

>Never mind my previous post, I was looking at incorrect data.
>
>The answer is that binary data has a property of svn:mime-type =
>application/octet-stream.
>
Not quite: it's assumed to be binary if the mime type isn't text/*. It's
perfectly OK to set the mime type to image/png, for example, and the
client will still treat it as binary. Look at

Look at libsvn_subr/validate.c: svn_mime_type_is_binary. You should just
use that function, because sometime in the future we'll have to be a bit
smarter about the mime types (because of such eminently "wise" decisions
as decidint that XHTML should be "application/xhtml+xml", even though
it's obviously text).

>
>That will really help out.
>
>
>

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 22 10:56:55 2002

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