diff options
Diffstat (limited to 'actionpack/lib/action_controller/request.rb')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 300a0ea60c..cbefc2e490 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -61,7 +61,7 @@ module ActionController end end - @content_type = Mime::Type.new(@content_type) + @content_type = Mime::Type.lookup(@content_type) end def accepts @@ -71,7 +71,7 @@ module ActionController [ content_type, Mime::ALL ] else @env['HTTP_ACCEPT'].split(";").collect! do |mime_type| - Mime::Type.new(mime_type.strip) + Mime::Type.lookup(mime_type.strip) end end end |