Skip to content

Commit ef53145

Browse files
committed
Merge pull request #220 from macreery/valid-mime-types
Use (more) authoritative MIME types so that embedded .woff and .ttf don't raise warnings in WebKit Web Inspector
2 parents 7d7e5fe + b656d6e commit ef53145

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/jammit/compressor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Compressor
1515
'.gif' => 'image/gif',
1616
'.tif' => 'image/tiff',
1717
'.tiff' => 'image/tiff',
18-
'.ttf' => 'font/truetype',
18+
'.ttf' => 'application/x-font-ttf',
1919
'.otf' => 'font/opentype',
20-
'.woff' => 'font/woff'
20+
'.woff' => 'application/x-font-woff'
2121
}
2222

2323
# Font extensions for which we allow embedding:

0 commit comments

Comments
 (0)