diff options
Diffstat (limited to 'lib/rack/showstatus.rb')
-rw-r--r-- | lib/rack/showstatus.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/showstatus.rb b/lib/rack/showstatus.rb index 4426310a..430b7d84 100644 --- a/lib/rack/showstatus.rb +++ b/lib/rack/showstatus.rb @@ -34,7 +34,7 @@ module Rack detail = detail = env["rack.showstatus.detail"] || message body = @template.result(binding) - size = Rack::Utils.bytesize(body) + size = body.bytesize [status, headers.merge(CONTENT_TYPE => "text/html", CONTENT_LENGTH => size.to_s), [body]] else [status, headers, body] |