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:
parent
6430712dad
commit
cbd9dead37
2 changed files with 2 additions and 2 deletions
|
|
@ -470,7 +470,7 @@ func (p *processor) integrity(
|
||||||
// Warn if we do not get JSON.
|
// Warn if we do not get JSON.
|
||||||
if ct := res.Header.Get("Content-Type"); ct != "application/json" {
|
if ct := res.Header.Get("Content-Type"); ct != "application/json" {
|
||||||
lg(WarnType,
|
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)
|
u, ct)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ func (d *downloader) downloadFiles(label csaf.TLPLabel, files []csaf.AdvisoryFil
|
||||||
// Warn if we do not get JSON.
|
// Warn if we do not get JSON.
|
||||||
if ct := resp.Header.Get("Content-Type"); ct != "application/json" {
|
if ct := resp.Header.Get("Content-Type"); ct != "application/json" {
|
||||||
log.Printf(
|
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)
|
file.URL(), ct)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue