mirror of
https://github.com/Luzifer/ots.git
synced 2025-02-25 17:31:12 -05:00
[client] Fix wrong method when creating secrets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
391e9a85ce
commit
7c74a7c47c
@ -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…
x
Reference in New Issue
Block a user