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

If there are year folders in directory listings, fetch files from the extra level.

This commit is contained in:
Sascha L. Teichmann 2022-05-17 15:58:34 +02:00
parent 29f26e0299
commit 131a7155fa
3 changed files with 85 additions and 30 deletions

View file

@ -252,7 +252,7 @@ func (p *processor) checkRedirect(r *http.Request, via []*http.Request) error {
p.redirects[url] = path.String()
if len(via) > 10 {
return errors.New("Too many redirections")
return errors.New("too many redirections")
}
return nil
}
@ -826,7 +826,7 @@ func (p *processor) extractProviderURL(r io.Reader) (string, error) {
return "", err
}
if len(urls) == 0 {
return "", errors.New("No provider-metadata.json found")
return "", errors.New("no provider-metadata.json found")
}
if len(urls) > 1 {