mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 06:45:25 +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 {
|
||||
return nil, errors.Wrap(err, "could not parse custom baseurl")
|
||||
}
|
||||
if !strings.HasSuffix(parsed.Path, "/") {
|
||||
parsed.Path += "/"
|
||||
}
|
||||
client.BaseURL = parsed
|
||||
}
|
||||
return &Integration{client: client, options: options}, nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user