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

Report error in checker if content type is not correct

Related: #606
This commit is contained in:
koplas 2025-03-10 11:11:34 +01:00
parent 3e16741ed5
commit 3cfafa8263

View file

@ -678,9 +678,9 @@ func (p *processor) integrity(
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" {
lg(WarnType,
lg(ErrorType,
"The content type of %s should be 'application/json' but is '%s'",
u, ct)
}