Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Brady Bouchard authored and josh committed Dec 17, 2008
1 parent f23c279 commit 33f76bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/rescue.rb
Expand Up @@ -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
Expand Down

0 comments on commit 33f76bb

Please sign in to comment.