From 3cfafa8263112d79d489dbc170004fcf3498340b Mon Sep 17 00:00:00 2001 From: koplas Date: Mon, 10 Mar 2025 11:11:34 +0100 Subject: [PATCH] Report error in checker if content type is not correct Related: #606 --- cmd/csaf_checker/processor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/csaf_checker/processor.go b/cmd/csaf_checker/processor.go index c0aafb2..397c88e 100644 --- a/cmd/csaf_checker/processor.go +++ b/cmd/csaf_checker/processor.go @@ -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) }