Permalink
Browse files

Added CSV to Mime::SET so that respond_to csv will work

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
Tobias Lütke
Tobias Lütke committed Nov 24, 2006
1 parent 7c7d589 commit ad62d461e835fefd4c251c402b4e815de03e229d
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/mime_type.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Added CSV to Mime::SET so that respond_to csv will work [Cody Fauser]
+
* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [DHH]
* Added GET-masquarading for HEAD, so request.method will return :get even for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you don't even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH]
@@ -141,7 +141,7 @@ def ==(mime_type)
ATOM = Type.new "application/atom+xml", :atom
YAML = Type.new "application/x-yaml", :yaml, %w( text/yaml )
- SET = [ ALL, TEXT, HTML, JS, ICS, XML, RSS, ATOM, YAML ]
+ SET = [ ALL, TEXT, HTML, JS, ICS, XML, RSS, ATOM, YAML, CSV ]
LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k == "" }

0 comments on commit ad62d46

Please sign in to comment.