diff options
Diffstat (limited to 'actionpack/lib/action_controller/mime_types.rb')
-rw-r--r-- | actionpack/lib/action_controller/mime_types.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/mime_types.rb b/actionpack/lib/action_controller/mime_types.rb index 4b6a00da1d..bc458d85fa 100644 --- a/actionpack/lib/action_controller/mime_types.rb +++ b/actionpack/lib/action_controller/mime_types.rb @@ -2,10 +2,12 @@ Mime::Type.register "*/*", :all Mime::Type.register "text/plain", :text Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml ) Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript ) -Mime::Type.register "text/x-json", :json, %w( application/x-json ) Mime::Type.register "text/calendar", :ics Mime::Type.register "text/csv", :csv Mime::Type.register "application/xml", :xml, %w( text/xml application/x-xml ) Mime::Type.register "application/rss+xml", :rss Mime::Type.register "application/atom+xml", :atom -Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml )
\ No newline at end of file +Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml ) + +# http://www.ietf.org/rfc/rfc4627.txt +Mime::Type.register "application/json", :json, %w( text/x-json ) |