[client] Fix wrong method when creating secrets

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-12-10 13:29:37 +01:00
parent 391e9a85ce
commit 7c74a7c47c
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -106,7 +106,7 @@ func Create(instanceURL string, secret Secret, expireIn time.Duration) (string,
}.Encode()
}
req, err := http.NewRequestWithContext(ctx, http.MethodGet, createURL.String(), body)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, createURL.String(), body)
if err != nil {
return "", time.Time{}, fmt.Errorf("creating request: %w", err)
}