Fix URL in new request in special FetchSessionKey
This commit is contained in:
parent
72862609c5
commit
744837b9c7
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ func (c *Client) FetchSessionKey(privatekey string) error {
|
|||
query := form.Encode()
|
||||
|
||||
ctx := context.Background()
|
||||
req, err := http.NewRequestWithContext(ctx, "POST", secretsPath+"/get-session-key/", strings.NewReader(query))
|
||||
req, err := http.NewRequestWithContext(ctx, "POST", c.baseURL.String()+secretsPath+"/get-session-key/", strings.NewReader(query))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue