From 3cc35bed7a976911c2e80725185303c44a11a9b9 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 26 Aug 2015 11:42:41 -0700 Subject: include ActionView::Rendering in the minimal controller without this module, the content type is not set correctly --- actionpack/lib/action_controller/metal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index 51562ec0fb..f7be1e1fc5 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -177,7 +177,7 @@ module ActionController end def content_type - request.content_type + response.content_type end def location -- cgit v1.2.3