Skip to content

Loading…

Add 'image/pjpeg' format used by IE #4743

Merged
merged 1 commit into from

2 participants

Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/mime_types.rb
View
2 actionpack/lib/action_dispatch/http/mime_types.rb
@@ -9,7 +9,7 @@
Mime::Type.register "text/csv", :csv
Mime::Type.register "image/png", :png, [], %w(png)
-Mime::Type.register "image/jpeg", :jpeg, [], %w(jpg jpeg jpe)
+Mime::Type.register "image/jpeg", :jpeg, [], %w(jpg jpeg jpe pjpeg)
Mime::Type.register "image/gif", :gif, [], %w(gif)
Mime::Type.register "image/bmp", :bmp, [], %w(bmp)
Mime::Type.register "image/tiff", :tiff, [], %w(tif tiff)
Something went wrong with that request. Please try again.