From 5c30352328f8a0223746139e024b6bea7b3d36c0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 2 Jun 2006 03:39:56 +0000 Subject: Added support for Mime objects in render :content_type option [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/base.rb') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 0902e70082..38a255192e 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -649,7 +649,7 @@ module ActionController #:nodoc: end if content_type = options[:content_type] - headers["Content-Type"] = content_type + headers["Content-Type"] = content_type.to_s end if text = options[:text] -- cgit v1.2.3