mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
fix Base url path being overwritten
This commit is contained in:
parent
8e4637492d
commit
f790467d28
2 changed files with 12 additions and 19 deletions
|
@ -34,9 +34,9 @@ func (c *Client) DoCustomRequest(ctx context.Context, method, path, version stri
|
|||
func (c *Client) DoCustomRequestAndReturnRawResponse(ctx context.Context, method, path, version string, body interface{}, opts interface{}) (*http.Response, *APIResponse, error) {
|
||||
firstTime := true
|
||||
start:
|
||||
u, err := addOptions(path, version, opts)
|
||||
u, err := generateURL(*c.baseURL, path, version, opts)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("Adding Request Options: %w", err)
|
||||
return nil, nil, fmt.Errorf("Generating Path: %w", err)
|
||||
}
|
||||
|
||||
req, err := c.newRequest(method, u, body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue