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.
9275a37a9f
...
d8e903587a
1 changed files with 3 additions and 5 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue