mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Remove unnecessary URL joins (#676)
This should avoid bugs for more complex scenarios.
This commit is contained in:
parent
1a2a8fae9c
commit
187d114631
5 changed files with 41 additions and 70 deletions
|
|
@ -67,17 +67,16 @@ func (w *worker) mirrorInternal() (*csaf.AggregatorCSAFProvider, error) {
|
|||
// Collecting the categories per label.
|
||||
w.categories = map[string]util.Set[string]{}
|
||||
|
||||
base, err := url.Parse(w.loc)
|
||||
pmdURL, err := url.Parse(w.loc)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
base.Path = ""
|
||||
|
||||
afp := csaf.NewAdvisoryFileProcessor(
|
||||
w.client,
|
||||
w.expr,
|
||||
w.metadataProvider,
|
||||
base)
|
||||
pmdURL)
|
||||
|
||||
afp.AgeAccept = w.provider.ageAccept(w.processor.cfg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue