mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
committed by
José Valim
parent
667522ca98
commit
bb6cd6d3ec
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user