aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base/mime_responds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/base/mime_responds.rb')
-rw-r--r--actionpack/lib/action_controller/base/mime_responds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base/mime_responds.rb b/actionpack/lib/action_controller/base/mime_responds.rb
index 5c7218691e..c0aa58a6c2 100644
--- a/actionpack/lib/action_controller/base/mime_responds.rb
+++ b/actionpack/lib/action_controller/base/mime_responds.rb
@@ -124,8 +124,8 @@ module ActionController #:nodoc:
@controller.formats = [mime_type.to_sym]
end
+ @controller.content_type = mime_type
@controller.template.formats = [mime_type.to_sym]
- @response.content_type = mime_type
block_given? ? block.call : @controller.send(:render, :action => @controller.action_name)
end