From 7182d8713c2a8a7f5fc4cb0fbec678aa4b7c6c63 Mon Sep 17 00:00:00 2001 From: Brady Bouchard Date: Wed, 26 Nov 2008 00:29:23 -0700 Subject: [PATCH] Ensure error file is sent with a 'text/html' content type. --- actionpack/lib/action_controller/rescue.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index 9c24c3d..1d34d6d 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -89,7 +89,7 @@ module ActionController #:nodoc: status = interpret_status(status_code) path = "#{Rails.public_path}/#{status[0,3]}.html" if File.exist?(path) - render :file => path, :status => status + render :file => path, :status => status, :content_type => Mime::HTML else head status end -- 1.6.0.3