1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Compare commits

..

No commits in common. "9275a37a9faa07943b326ebded09559ef36a1084" and "d8e903587a8744b51227da17867505da75a44c41" have entirely different histories.

View file

@ -133,7 +133,7 @@ func (d *downloader) httpClient() util.Client {
client := util.Client(&hClient)
// Overwrite for testing purposes
if d.client != nil {
if client != nil {
client = *d.client
}
@ -514,8 +514,7 @@ nextAdvisory:
url: file.SHA512URL(),
warn: true,
hashType: algSha512,
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha512)),
})
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha512))})
} else {
slog.Info("SHA512 not present")
}
@ -524,8 +523,7 @@ nextAdvisory:
url: file.SHA256URL(),
warn: true,
hashType: algSha256,
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha256)),
})
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha256))})
} else {
slog.Info("SHA256 not present")
}