From 2ccd5f8cef40d9f8e4ef7852b65af44fbc67d65e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 19 Jun 2024 15:56:59 +0900 Subject: [rubygems/rubygems] Use get_byte_ranges instead of byte_ranges https://github.com/rubygems/rubygems/commit/5c2ad44c18 --- spec/bundler/support/artifice/helpers/compact_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/support/artifice/helpers/compact_index.rb b/spec/bundler/support/artifice/helpers/compact_index.rb index a803a2d30a..3fc1ce7fef 100644 --- a/spec/bundler/support/artifice/helpers/compact_index.rb +++ b/spec/bundler/support/artifice/helpers/compact_index.rb @@ -40,7 +40,7 @@ class CompactIndexAPI < Endpoint end def requested_range_for(response_body) - ranges = Rack::Utils.byte_ranges(env, response_body.bytesize) + ranges = Rack::Utils.get_byte_ranges(env["HTTP_RANGE"], response_body.bytesize) if ranges status 206 -- cgit v1.2.3