I should add tests.. :)

This commit is contained in:
Kalle Carlbark 2021-11-27 23:46:52 +01:00
parent 03799c289d
commit 36ba50352a
No known key found for this signature in database

View file

@ -10,7 +10,6 @@ import (
"log"
"net/http"
"net/url"
"strings"
"time"
"github.com/pkg/errors"
@ -199,7 +198,7 @@ func (c *Client) FetchSessionKey(privatekey string) error {
query := form.Encode()
ctx := context.Background()
req, err := c.newRequest(ctx, "POST", secretsPath+"/get-session-key/", "", strings.NewReader(query))
req, err := c.newRequest(ctx, "POST", secretsPath+"/get-session-key/", "", query)
if err != nil {
return err
}