From f9650a23f060c0d8678b2bda45e502f0bca487cc Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 9 Oct 2006 00:56:13 +0000 Subject: Fixed that caches_action breaks with file extensions (closes #6257) [Catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/caching.rb') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index fa45b46e05..926535da03 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -210,7 +210,7 @@ module ActionController #:nodoc: def set_content_type!(action_cache_path) if extention = action_cache_path.extension content_type = Mime::EXTENSION_LOOKUP[extention] - action_cache_path.controller.content_type = content_type.to_s + action_cache_path.controller.response.content_type = content_type.to_s end end -- cgit v1.2.3