Use Rack::Utils.bytesize when calculating content-length of exception pages. [#4727 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Tarsoly András
2010-05-29 22:09:14 +02:00
committed by José Valim
parent 667522ca98
commit bb6cd6d3ec

View File

@@ -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