Skip to content

Commit

Permalink
Merge pull request #36 from 1dustindavis/upper-sha
Browse files Browse the repository at this point in the history
Before comparing the hash, covert it to lowercase
  • Loading branch information
1dustindavis authored Nov 20, 2018
2 parents 7459c24 + 19467f3 commit 37d149e
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 37d149e

Please sign in to comment.