diff options
author | Tarsoly András <tarsolya@gmail.com> | 2010-05-29 22:09:14 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-20 00:52:35 +0200 |
commit | bb6cd6d3ec02996c7dd11a4bb96381da18b7de8a (patch) | |
tree | f402245af2fca52043c91c99bbfde344d3cc84af /actionpack | |
parent | 667522ca9834ce1f173a3421fb0bf0f555324c6f (diff) | |
download | rails-bb6cd6d3ec02996c7dd11a4bb96381da18b7de8a.tar.gz rails-bb6cd6d3ec02996c7dd11a4bb96381da18b7de8a.tar.bz2 rails-bb6cd6d3ec02996c7dd11a4bb96381da18b7de8a.zip |
Use Rack::Utils.bytesize when calculating content-length of exception pages. [#4727 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack')
-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 0a6d2bfc8a..e095b51342 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -122,7 +122,7 @@ module ActionDispatch end def render(status, body) - [status, {'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s}, [body]] + [status, {'Content-Type' => 'text/html', 'Content-Length' => body.bytesize.to_s}, [body]] end def public_path |