From dbf42e379becc5612a0efe3476a999a9d6d803f0 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 6 Mar 2007 09:46:04 +0000 Subject: Prefer MIME constants to strings. Closes #7707. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/response.rb') diff --git a/actionpack/lib/action_controller/response.rb b/actionpack/lib/action_controller/response.rb index 38647670f2..429b3eff32 100755 --- a/actionpack/lib/action_controller/response.rb +++ b/actionpack/lib/action_controller/response.rb @@ -20,7 +20,7 @@ module ActionController end def charset=(encoding) - self.headers["Content-Type"] = "#{content_type || "text/html"}; charset=#{encoding}" + self.headers["Content-Type"] = "#{content_type || Mime::HTML}; charset=#{encoding}" end def charset -- cgit v1.2.3