aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:33:44 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-22 10:33:44 +0100
commit927a314012720b82fe8d3c0d4e96bb1bf1dbb12d (patch)
tree084a5b67566317d555599a3de5567fe4e77de8dd /client
parent5154fbe82a186d1c56a29452ab50444a25e716a6 (diff)
renamed sth and cosigning endpoints
Diffstat (limited to 'client')
-rw-r--r--client/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go
index 0cbf432..3bd4f50 100644
--- a/client/client.go
+++ b/client/client.go
@@ -89,7 +89,7 @@ func (c *Client) AddEntry(ctx context.Context, name, checksum []byte) (*stfe.StI
// GetSth fetches and verifies the most recent STH.
func (c *Client) GetSth(ctx context.Context) (*stfe.StItem, error) {
- url := stfe.EndpointGetSth.Path(c.protocol() + c.Log.BaseUrl)
+ url := stfe.EndpointGetLatestSth.Path(c.protocol() + c.Log.BaseUrl)
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, fmt.Errorf("failed creating http request: %v", err)