@@ -248,6 +248,7 @@ func normalizeCertifications(values []string) []string {
|
||||
}
|
||||
|
||||
seen[key] = struct{}{}
|
||||
|
||||
out = append(out, v)
|
||||
}
|
||||
|
||||
|
||||
@@ -250,6 +250,7 @@ func (h *enrichmentHandler) Process(ctx context.Context, party coredata.CommonTh
|
||||
applyCertifications(&party, meta, prior, compliance.Certifications, h.cfg.ConfidenceThreshold, now)
|
||||
|
||||
status := enrichmentStatusDone
|
||||
|
||||
switch {
|
||||
case !anySuccess:
|
||||
status = enrichmentStatusFailed
|
||||
|
||||
2
pkg/thirdparty/common_third_party_logo.go
vendored
2
pkg/thirdparty/common_third_party_logo.go
vendored
@@ -178,6 +178,7 @@ func downloadImage(
|
||||
if err != nil {
|
||||
return nil, "", fmt.Errorf("cannot fetch logo: %w", err)
|
||||
}
|
||||
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
@@ -188,6 +189,7 @@ func downloadImage(
|
||||
if idx := strings.Index(contentType, ";"); idx != -1 {
|
||||
contentType = contentType[:idx]
|
||||
}
|
||||
|
||||
contentType = strings.TrimSpace(contentType)
|
||||
|
||||
if !strings.HasPrefix(contentType, "image/") {
|
||||
|
||||
Reference in New Issue
Block a user