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

Reply via email to