Fixed bug with github client and paths with no slash

This commit is contained in:
Ice3man543 2021-10-25 18:19:27 +05:30
parent ca6cc51302
commit c6445519ec

View File

@ -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