On 24/05/10 15:52 +0200, David Lutterkort wrote:
It doesn't seem to cause trouble, but shouldn't the above check against Rack::Mime::MIME_TYPES, i.e. the list of all known extensions for mime types, not just the text ones ?
Yes, I added a simple change before I pushed this to allow 'png' files for example. But checking against Rack::Mime::MIME_TYPES sounds better to me.
-- Michal