We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44b34c2 commit 421a99dCopy full SHA for 421a99d
1 file changed
src/main/ruby/jruby/rack/error_app/show_status.rb
@@ -27,7 +27,7 @@ def call(env)
27
detail = detail = env["rack.showstatus.detail"] || message
28
29
body = @template.result(binding)
30
- size = ::Rack::Utils.bytesize(body)
+ size = body.bytesize
31
[status, headers.merge('Content-Type' => "text/html", 'Content-Length' => size.to_s), [body]]
32
else
33
[status, headers, body]
0 commit comments