Skip to content

Commit

Permalink
Use Rack::Utils.bytesize when calculating content-length of exception…
Browse files Browse the repository at this point in the history
… pages. [#4727 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
tarsolya authored and josevalim committed Jun 19, 2010
1 parent 667522c commit bb6cd6d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -122,7 +122,7 @@ def status_code(exception)
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
Expand Down

0 comments on commit bb6cd6d

Please sign in to comment.