diff options
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index eab663e2e0..9b510d4ab9 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -259,7 +259,7 @@ module ActionDispatch # :nodoc: def charset=(charset) header_info = parsed_content_type_header if false == charset - set_header CONTENT_TYPE, header_info.mime_type + set_content_type header_info.mime_type, nil else content_type = header_info.mime_type set_content_type content_type, charset || self.class.default_charset |