incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: Issue with null MIME type for attachments
Date Sun, 25 Jan 2009 21:45:27 GMT
On Sun, Jan 25, 2009 at 09:38:45PM +0000, Noah Slater wrote:
> On Sun, Jan 25, 2009 at 09:06:22PM +0000, Brian Candler wrote:
> > For now though, couchapp could use the ruby MIME::Types gem in place of its
> > own hard-coded table.
> >
> > irb(main):008:0> MIME::Types.type_for('citydesk.xml').first.to_s
> > => "application/xml"
> 
> If Ruby is anything like Python, it pulls those values from /etc/mime.types

Not the Ruby one. It has them all hardcoded direct from the RFCs, plus some
metadata which /etc/mime.types doesn't include (for example, it notes which
MIME types refer to digital signatures)

I guess if the server did this, and did it properly, it would free up all
the clients from having to worry about it.

Mime
View raw message