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

Fix: Return properly early

This commit is contained in:
JanHoefelmeyer 2025-06-24 17:06:55 +02:00
parent 091854a248
commit 02d4931152

View file

@ -1437,6 +1437,7 @@ func (p *processor) checkWellknown(domain string) {
if err != nil {
p.badWellknownMetadata.add(ErrorType,
fmt.Sprintf("Fetching %s failed: %v", path, err))
return
}
if res.StatusCode != http.StatusOK {
p.badWellknownMetadata.add(ErrorType, fmt.Sprintf("Fetching %s failed. Status code %d (%s)",