Skip to content
Browse files

Register JPEG synonyms correctly

  • Loading branch information...
1 parent be59f58 commit 2c1d00888c129ef9a1391981f83efc8bf321ef18 @pixeltrix pixeltrix committed with hewo
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/fleximage.rb
View
3 lib/fleximage.rb
@@ -53,7 +53,6 @@
ActionController::Base.class_eval{ include Fleximage::AviaryController }
# Register mime types
-Mime::Type.register_alias "image/pjpeg", :jpg # IE6 sends jpg data as "image/pjpeg". Silly IE6.
-Mime::Type.register "image/jpeg", :jpg
+Mime::Type.register "image/jpeg", :jpg, ["image/pjpeg"], ["jpeg"]
Mime::Type.register "image/gif", :gif
Mime::Type.register "image/png", :png

0 comments on commit 2c1d008

Please sign in to comment.
Something went wrong with that request. Please try again.