couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: Issue with null MIME type for attachments
Date Sun, 25 Jan 2009 21:38:45 GMT
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

... at least, from memory it does. Been a while.

-- 
Noah Slater, http://tumbolia.org/nslater

Mime
View raw message