Fix URL in new request in special FetchSessionKey

This commit is contained in:
Kalle Carlbark 2021-11-27 23:57:14 +01:00
parent 72862609c5
commit 744837b9c7
No known key found for this signature in database

View file

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