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:
parent
29f26e0299
commit
131a7155fa
3 changed files with 85 additions and 30 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue