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"
|
||||
"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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue