Permalink
Browse files

Fix the mime type returned for svg images. Closes GH-442.

  • Loading branch information...
1 parent ab270c1 commit b7e66a765886d09ea15cda27294bceff0612fe5b @chriseppstein chriseppstein committed Jul 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/compass/sass_extensions/functions/inline_image.rb
@@ -35,6 +35,8 @@ def compute_mime_type(path, mime_type = nil)
'image/jpeg'
when /\.gif$/i
'image/gif'
+ when /\.svg$/i
+ 'image/svg+xml'
when /\.otf$/i
'font/opentype'
when /\.ttf$/i

0 comments on commit b7e66a7

Please sign in to comment.