From 43962d6ec50f918c9970bd3cd4b6ee5c7f7426ed Mon Sep 17 00:00:00 2001 From: Angelo capilleri Date: Fri, 29 Nov 2013 12:26:12 +0100 Subject: Fix header Content-Type: # in localized template This PR fixes #13064 regression bug introduced by the #8085 Now in _process_format when the format is a Mime::NullType nothing is written in self.content_type. In this way the method Response#assign_default_content_type_and_charset can write the the default mime_type. --- actionpack/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionpack/CHANGELOG.md') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index e649847990..c413bd8267 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,12 @@ +* Fix header Content-Type: # in localized template + + When localized template has no format in the template name, + now the response has the default and correct `content-type`. + + Fix #13064. + + *Angelo Capilleri* + * Better error message for typos in assert_response argument. When the response type argument to `assert_response` is not a known -- cgit v1.2.3