mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
parent
3e16741ed5
commit
3cfafa8263
1 changed files with 2 additions and 2 deletions
|
|
@ -678,9 +678,9 @@ func (p *processor) integrity(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warn if we do not get JSON.
|
// Error 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(ErrorType,
|
||||||
"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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue