halostatue/mime-types — Issue #6: Additional mime types for fonts, coffescript and air
Author: Soleone
Created: 2011-11-01 22:16:31+00:00
State: open

We're currently using mime-types in our app and added the following additional content types:

MIME::Type.new('text/x-coffeescript') do |t|
t.extensions = %w(coffee)
t.encoding = '8bit'
end,

MIME::Type.new('application/x-font-truetype') do |t|
t.extensions = %w(ttf)
t.encoding = 'base64'
end,

MIME::Type.new('application/x-woff') do |t|
t.extensions = %w(woff)
t.encoding = 'base64'
end

MIME::Type.new('application/vnd.adobe.air-applicationinstaller-package+zip') do |t|
t.extensions = %w(air)
t.encoding = 'base64'
end

I think those make sense to add as a default, but I wanted to make sure you agree before I go ahead and create/send a pull request.