Skip to content

Commit 421a99d

Browse files
committed
Remove usage of Rack::Utils.bytesize
1 parent 44b34c2 commit 421a99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/jruby/rack/error_app/show_status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def call(env)
2727
detail = detail = env["rack.showstatus.detail"] || message
2828

2929
body = @template.result(binding)
30-
size = ::Rack::Utils.bytesize(body)
30+
size = body.bytesize
3131
[status, headers.merge('Content-Type' => "text/html", 'Content-Length' => size.to_s), [body]]
3232
else
3333
[status, headers, body]

0 commit comments

Comments
 (0)