diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-15 23:57:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-15 23:57:16 +0000 |
commit | 73fbf7771bbfc6c3c8c4ddd8f4f84eb6bfac504d (patch) | |
tree | 657b1167446312f7f222d0a53982b77ae5fdf392 /actionpack/lib | |
parent | 9d1f1a86552417a3e4624a93d62a5dc73eb13826 (diff) | |
download | rails-73fbf7771bbfc6c3c8c4ddd8f4f84eb6bfac504d.tar.gz rails-73fbf7771bbfc6c3c8c4ddd8f4f84eb6bfac504d.tar.bz2 rails-73fbf7771bbfc6c3c8c4ddd8f4f84eb6bfac504d.zip |
Add multipart and url-encoded form mime types.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/mime_types.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/mime_types.rb b/actionpack/lib/action_controller/mime_types.rb index 8273a2403b..71706b4c41 100644 --- a/actionpack/lib/action_controller/mime_types.rb +++ b/actionpack/lib/action_controller/mime_types.rb @@ -13,5 +13,8 @@ Mime::Type.register "application/rss+xml", :rss Mime::Type.register "application/atom+xml", :atom Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml ) +Mime::Type.register "multipart/form-data", :multipart_form +Mime::Type.register "application/x-www-form-urlencoded", :url_encoded_form + # http://www.ietf.org/rfc/rfc4627.txt Mime::Type.register "application/json", :json, %w( text/x-json ) |