Permalink
Browse files

Ensure error file is sent with a 'text/html' content type [#1478 stat…

…e:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent f23c279 commit 33f76bb25a973a4707437064e2f963c521413fcb @bouchard bouchard committed with josh Dec 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/rescue.rb
@@ -104,7 +104,7 @@ def render_optional_error_file(status_code)
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

0 comments on commit 33f76bb

Please sign in to comment.