I should add tests.. :)
This commit is contained in:
parent
03799c289d
commit
36ba50352a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue