diff options
author | Matias Korhonen <matias@kiskolabs.com> | 2011-05-03 16:30:59 +0300 |
---|---|---|
committer | Matias Korhonen <matias@kiskolabs.com> | 2011-05-03 16:30:59 +0300 |
commit | 49b825e502d57f10aa2cee10c1d631a95f3cef64 (patch) | |
tree | b26a52e2e31bab2314a42b6f03ea53d98d71e780 /actionpack/lib/action_dispatch | |
parent | c7f7a45676f929195d6b12824acd7f200610e081 (diff) | |
download | rails-49b825e502d57f10aa2cee10c1d631a95f3cef64.tar.gz rails-49b825e502d57f10aa2cee10c1d631a95f3cef64.tar.bz2 rails-49b825e502d57f10aa2cee10c1d631a95f3cef64.zip |
Sets the HTTP charset parameter for rescue response.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb index b1adf3d2d1..c17c746096 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -116,7 +116,7 @@ module ActionDispatch end def render(status, body) - [status, {'Content-Type' => 'text/html', 'Content-Length' => body.bytesize.to_s}, [body]] + [status, {'Content-Type' => "text/html; charset=#{Response.default_charset}", 'Content-Length' => body.bytesize.to_s}, [body]] end def public_path |