Skip to content
Browse files

Added default mime type for CSS (Mime::CSS) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2e55095 commit 392c7f7314d196c54912a65981d79002d032f896 @dhh dhh committed
Showing with 3 additions and 0 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −0 actionpack/lib/action_controller/mime_types.rb
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added default mime type for CSS (Mime::CSS) [DHH]
+
* Added that rendering will automatically insert the etag header on 200 OK responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH]
* Added X-Runtime to all responses with the request run time [DHH]
View
1 actionpack/lib/action_controller/mime_types.rb
@@ -2,6 +2,7 @@
Mime::Type.register "text/plain", :text, [], %w(txt)
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/css", :css
Mime::Type.register "text/calendar", :ics
Mime::Type.register "text/csv", :csv
Mime::Type.register "application/xml", :xml, %w( text/xml application/x-xml )

0 comments on commit 392c7f7

Please sign in to comment.
Something went wrong with that request. Please try again.