Skip to content

Commit 61060d3

Browse files
martinemdehsbt
authored andcommitted
[rubygems/rubygems] Remove MD5 digesting of compact index responses
It has been over a year since the release, so let's stop MD5ing everything ruby/rubygems@29ef4ca30b
1 parent 3e78a2f commit 61060d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/bundler/compact_index_client.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ module Bundler
2828
# It may be called concurrently without global interpreter lock in some Rubies.
2929
# As a result, some methods may look more complex than necessary to save memory or time.
3030
class CompactIndexClient
31-
# NOTE: MD5 is here not because we expect a server to respond with it, but
32-
# because we use it to generate the etag on first request during the upgrade
33-
# to the compact index client that uses opaque etags saved to files.
34-
# Remove once 2.5.0 has been out for a while.
35-
SUPPORTED_DIGESTS = { "sha-256" => :SHA256, "md5" => :MD5 }.freeze
31+
SUPPORTED_DIGESTS = { "sha-256" => :SHA256 }.freeze
3632
DEBUG_MUTEX = Thread::Mutex.new
3733

3834
# info returns an Array of INFO Arrays. Each INFO Array has the following indices:

0 commit comments

Comments
 (0)