Skip to content

Commit

Permalink
Merge pull request #1079 from pod4lib/update-digest
Browse files Browse the repository at this point in the history
Update the digest algorithm to use the newer defaults
  • Loading branch information
corylown authored Sep 5, 2024
2 parents 913a79a + e49aef5 commit 4c89867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_7_0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Change the digest class for ActiveSupport::Digest.
# Changing this default means that for example Etags change and
# various cache keys leading to cache invalidation.
# Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256
Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256

# Don't override ActiveSupport::TimeWithZone.name and use the default Ruby
# implementation.
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/files_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'Accept-Ranges' => 'bytes',
'Content-Disposition' => 'attachment',
'Content-Type' => 'application/marc',
'Etag' => 'W/"38c691f04e7e59e58c3fea6eb54b5421"'
'Etag' => 'W/"f97fb02f92d85d88a8d6c06d60a5aed2"'
}
end

Expand Down

0 comments on commit 4c89867

Please sign in to comment.