Skip to content

Commit

Permalink
Merge pull request Homebrew#16202 from ZhongRuoyu/digest-sha256
Browse files Browse the repository at this point in the history
utils/curl: fix `Digest::SHA256` typo
  • Loading branch information
MikeMcQuaid authored Nov 10, 2023
2 parents a808e30 + ac7a1bf commit 22a56e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def curl_http_content_headers_and_checksum(
end
end
file_contents = File.read(T.must(file.path), **open_args)
file_hash = Digest::SHA2.hexdigest(file_contents) if hash_needed
file_hash = Digest::SHA256.hexdigest(file_contents) if hash_needed
end

{
Expand Down

0 comments on commit 22a56e8

Please sign in to comment.