[client] Fix wrong method when creating secrets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
391e9a85ce
commit
7c74a7c47c
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ func Create(instanceURL string, secret Secret, expireIn time.Duration) (string,
|
||||||
}.Encode()
|
}.Encode()
|
||||||
}
|
}
|
||||||
|
|
||||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, createURL.String(), body)
|
req, err := http.NewRequestWithContext(ctx, http.MethodPost, createURL.String(), body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
|
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue