diff options
author | Russ Smith <russ@bashme.org> | 2009-03-11 12:50:24 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-03-11 12:50:24 -0500 |
commit | f2c7508befb085ffe19ec7fb9ca2e6919cc919c9 (patch) | |
tree | 838b029ea24d6d9320082a5b0045d915c10ba1a6 /actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb | |
parent | 106976df0911e423042ec4abc165fd561766a047 (diff) | |
download | rails-f2c7508befb085ffe19ec7fb9ca2e6919cc919c9.tar.gz rails-f2c7508befb085ffe19ec7fb9ca2e6919cc919c9.tar.bz2 rails-f2c7508befb085ffe19ec7fb9ca2e6919cc919c9.zip |
Update bundled Rack to fix Litespeed compatibility [#2198 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb')
-rw-r--r-- | actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb b/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb index 5f13404dce..28258c7c89 100644 --- a/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb +++ b/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb @@ -27,7 +27,7 @@ module Rack message = Rack::Utils::HTTP_STATUS_CODES[status.to_i] || status.to_s detail = env["rack.showstatus.detail"] || message body = @template.result(binding) - size = body.respond_to?(:bytesize) ? body.bytesize : body.size + size = Rack::Utils.bytesize(body) [status, headers.merge("Content-Type" => "text/html", "Content-Length" => size.to_s), [body]] else [status, headers, body] |