1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Fix small typo in reporting wromg content type

This commit is contained in:
Sascha L. Teichmann 2023-02-01 12:59:19 +01:00
parent 6430712dad
commit cbd9dead37
2 changed files with 2 additions and 2 deletions

View file

@ -470,7 +470,7 @@ func (p *processor) integrity(
// Warn if we do not get JSON.
if ct := res.Header.Get("Content-Type"); ct != "application/json" {
lg(WarnType,
"The content type of %s should be 'application/json but is '%s'",
"The content type of %s should be 'application/json' but is '%s'",
u, ct)
}

View file

@ -284,7 +284,7 @@ func (d *downloader) downloadFiles(label csaf.TLPLabel, files []csaf.AdvisoryFil
// Warn if we do not get JSON.
if ct := resp.Header.Get("Content-Type"); ct != "application/json" {
log.Printf(
"WARN: The content type of %s should be 'application/json but is '%s'\n",
"WARN: The content type of %s should be 'application/json' but is '%s'\n",
file.URL(), ct)
}