summaryrefslogtreecommitdiff
path: root/spec/support/artifice
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-10-15 11:37:41 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-10-15 11:37:41 -0500
commit9e3e39896f9c682782fcc00bd27f81e2a284b2bb (patch)
tree61c7b754b0dad4feac32b4c799da8676f1d88a2d /spec/support/artifice
parentfea177f61df71121c6f9422a74b093e42c504388 (diff)
downloadbundler-9e3e39896f9c682782fcc00bd27f81e2a284b2bb.tar.gz
Load digest subclasses in a thread-safe mannerseg-digest-loading
Diffstat (limited to 'spec/support/artifice')
-rw-r--r--spec/support/artifice/compact_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb
index 64f7dc903a..434307576f 100644
--- a/spec/support/artifice/compact_index.rb
+++ b/spec/support/artifice/compact_index.rb
@@ -15,7 +15,7 @@ class CompactIndexAPI < Endpoint
def etag_response
response_body = yield
- checksum = Digest::MD5.hexdigest(response_body)
+ checksum = Digest(:MD5).hexdigest(response_body)
return if not_modified?(checksum)
headers "ETag" => quote(checksum)
headers "Surrogate-Control" => "max-age=2592000, stale-while-revalidate=60"