From 7c74a7c47c976b507732378e2bf426a0976b11e0 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 10 Dec 2023 13:29:37 +0100 Subject: [PATCH] [client] Fix wrong method when creating secrets Signed-off-by: Knut Ahlers --- pkg/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index decc283..53a6bc3 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -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) }