mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:35:26 +00:00
Fixed bug with github client and paths with no slash
This commit is contained in:
parent
ca6cc51302
commit
c6445519ec
@ -58,6 +58,9 @@ func New(options *Options) (*Integration, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "could not parse custom baseurl")
|
return nil, errors.Wrap(err, "could not parse custom baseurl")
|
||||||
}
|
}
|
||||||
|
if !strings.HasSuffix(parsed.Path, "/") {
|
||||||
|
parsed.Path += "/"
|
||||||
|
}
|
||||||
client.BaseURL = parsed
|
client.BaseURL = parsed
|
||||||
}
|
}
|
||||||
return &Integration{client: client, options: options}, nil
|
return &Integration{client: client, options: options}, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user