Skip to content

Commit

Permalink
Befrore compare the hash, covert it to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
1dustindavis committed Nov 20, 2018
1 parent 7459c24 commit 19467f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func Verify(file string, sha string) bool {
return false
}
shaHash := hex.EncodeToString(h.Sum(nil))
if shaHash != sha {
if shaHash != strings.ToLower(sha) {
gorillalog.Warn("Downloaded file hash does not match catalog hash")
return false
}
Expand Down

0 comments on commit 19467f3

Please sign in to comment.