From ab0703eb59d42e2572a9cffbda5a63d5780f6ed4 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 26 Aug 2015 10:45:51 -0700 Subject: remove useless conditional we always have a response object, so there is no reason to test it --- actionpack/lib/action_controller/metal/head.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/metal/head.rb') diff --git a/actionpack/lib/action_controller/metal/head.rb b/actionpack/lib/action_controller/metal/head.rb index 7dbd5ef328..74c1f314b1 100644 --- a/actionpack/lib/action_controller/metal/head.rb +++ b/actionpack/lib/action_controller/metal/head.rb @@ -45,7 +45,7 @@ module ActionController if include_content?(self.response_code) self.content_type = content_type || (Mime[formats.first] if formats) - self.response.charset = false if self.response + self.response.charset = false end true -- cgit v1.2.3