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" "log"
"net/http" "net/http"
"net/url" "net/url"
"strings"
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -199,7 +198,7 @@ func (c *Client) FetchSessionKey(privatekey string) error {
query := form.Encode() query := form.Encode()
ctx := context.Background() 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 { if err != nil {
return err return err
} }